48,357
edits
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
local export = {} | local export = {} | ||
local links_module = "Module:links" | |||
local process_params = require("Module:parameters").process | local process_params = require("Module:parameters").process | ||
local remove = table.remove | local remove = table.remove | ||
| Line 85: | Line 86: | ||
end | end | ||
-- Forward the information to full_link | -- Forward the information to full_link | ||
return (langname and langname .. " " or "") .. require( | return (langname and langname .. " " or "") .. require(links_module).full_link( | ||
{ | { | ||
lang = lang, | lang = lang, | ||
| Line 118: | Line 119: | ||
-- Forward the information to format_link_annotations | -- Forward the information to format_link_annotations | ||
return require( | return require(links_module).format_link_annotations( | ||
{ | { | ||
lang = args[1], | lang = args[1], | ||
| Line 151: | Line 152: | ||
term = term ~= "" and term or nil | term = term ~= "" and term or nil | ||
return require( | return require(links_module).language_link{ | ||
lang = lang, | lang = lang, | ||
sc = sc, | sc = sc, | ||
| Line 172: | Line 173: | ||
local face = frame.args.face | local face = frame.args.face | ||
local ret = require("Module:script utilities").tag_definition(require( | local ret = require("Module:script utilities").tag_definition(require(links_module).embedded_language_links{ | ||
term = args[1], | term = args[1], | ||
lang = require("Module:languages").getByCode("en"), | lang = require("Module:languages").getByCode("en"), | ||
| Line 207: | Line 208: | ||
local term = args[1] | local term = args[1] | ||
return require( | return require(links_module).full_link{ | ||
lang = args.lang, | lang = args.lang, | ||
term = term, | term = term, | ||
| Line 219: | Line 220: | ||
}) | }) | ||
return require( | return require(links_module).section_link(args[1]) | ||
end | end | ||
return export | return export | ||