Module:ISO 3166: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 192:
function p.luacode(args)
 
if args["codetype"]=="3" then
args["codetype"]="alpha3"
end
local eot = args.error or ""
Line 240 ⟶ 244:
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 ""
 
Anonymous user