Module:etymology/templates: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 33: Line 33:


local function fetch_script(sc)
local function fetch_script(sc)
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
return nil
end
end
end