Module:etymology/templates: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Undo revision 236719 by Sware (talk))
Tag: Undo
No edit summary
Line 32: Line 32:




local function fetch_script(sc)
local function fetch_script(sc, lang)
if sc then
if sc then
return require("Module:scripts").getByCode(sc) or error("The script code \"" .. sc .. "\" is not valid.")
return require("Module:scripts").getByCode(sc) or error("The script code \"" .. sc .. "\" is not valid.")
else
else
return nil
return lang:getScriptCodes()
end
end
end
end

Navigation menu