Module:ISO 3166: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Fixed error with flag handling)
No edit summary
Line 125: Line 125:
for alpha2,cdata in pairs(data) do
for alpha2,cdata in pairs(data) do
if findname(alpha2,cdata,args[1]) then
if findname(alpha2,cdata,args[1]) then
if mw.ustring.match(apha2,"GB") then
local sdata = mw.loadData("Module:ISO 3166/data/"..alpha2)
local sdata = mw.loadData("Module:ISO 3166/data/GB")
else
local sdata = mw.loadData("Module:ISO 3166/data/"..alpha2)
end
local empty = true
local empty = true
for scode,scdata in pairs(sdata) do
for scode,scdata in pairs(sdata) do