Module:scripts: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Chrysophylax moved page Module:Scripts to Module:scripts without leaving a redirect)
No edit summary
Line 131: Line 131:
if type(code) ~= "string" and paramForError then
if type(code) ~= "string" and paramForError then
error("The function getByCode expects a string as its first argument, but received " .. (code == nil and "nil" or "a " .. type(code)) .. ".")
error("The function getByCode expects a string as its first argument, but received " .. (code == nil and "nil" or "a " .. type(code)) .. ".")
end
if code == "IPAchar" then
require("Module:debug").track("IPAchar")
end
end
local retval = export.makeObject(code, mw.loadData("Module:scripts/data")[code])
local retval = export.makeObject(code, mw.loadData("Module:scripts/data")[code])

Navigation menu