Module:etymology/templates: Difference between revisions

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


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


Navigation menu