Module:ISO 3166: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 192: Line 192:
function p.luacode(args)
function p.luacode(args)


if args["codetype"]=="3" then
args["codetype"]="alpha3"
end
local eot = args.error or ""
local eot = args.error or ""
Line 240: Line 244:
function p.code(frame)
function p.code(frame)


return p.luacode(getArgs(frame)) or ""

end

--[[----------P . N U M E R I C---------]]---- Calls P.Luacode but using Module:Arguments and setting it to output a numeric value

function p.numeric(frame)

args["codetype"]="numeric"
return p.luacode(getArgs(frame)) or ""
return p.luacode(getArgs(frame)) or ""