Module:ISO 3166: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 163:
end
 
function p.subpagetest(argsframe)
 
local code = stringframe.upper(args[1])
 
local sdata
if not data[code1code] then
return "" --Unassigned or reserved 3166-1 code
else
local sname = "Module:ISO 3166/data/"..code1code
if not mw.title.new(sname).exists then
return "[[sname|-]]" --Data subpage doesn't exist
Anonymous user