Module:ISO 3166: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Mentioning module name in error message) |
(Output nil instead of "" if error=empty in Lua functions) |
||
Line 5: | Line 5: | ||
local function cerror(eot,errortext,inputtext) |
local function cerror(eot,errortext,inputtext) |
||
if eot=="empty" then |
if eot=="empty" then |
||
return |
return nil |
||
elseif eot=="input" then |
elseif eot=="input" then |
||
return inputtext |
return inputtext |
||
Line 111: | Line 111: | ||
local args = require("Module:Arguments").getArgs(frame) |
local args = require("Module:Arguments").getArgs(frame) |
||
return p.luaname(args) |
return p.luaname(args) or "" |
||
end |
end |
||
Line 162: | Line 162: | ||
local args = require("Module:Arguments").getArgs(frame) |
local args = require("Module:Arguments").getArgs(frame) |
||
return p.luacode(args) |
return p.luacode(args) or "" |
||
end |
end |