Module:ISO 3166: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 166: Line 166:
local empty = true
local empty = true
for scode,scdata in pairs(sdata) do
for scode,scdata in pairs(sdata) do
empty = false
if type(scdata)=="table" then
empty = false
if findname(scode,scdata,args[2]) then
return alpha2.."-"..scode
if findname(scode,scdata,args[2]) then
return alpha2.."-"..scode
end
end
end
end
end