Module:ISO 3166/sandbox: Difference between revisions

Content deleted Content added
tweak
tweak warning
Line 161:
if args[2] then return p.luacode(args) end
end
mw.addWarning('([[Module:ISO 3166]]) Unrecognized country ' .. code1 .. ' ("' .. args[1] .. '") is not a recognized country in [[ISO 3166-1]] ([[Module:ISO 3166]]).')
return cats('nocountry', args)
else --3166-2 code
Line 185:
end
if args[2] ~= "" then
mw.addWarning('([[Module:ISO 3166]]) ' .. code2 .. ' ("' .. args[2] .. '") is not a recognized subdivision in [[ISO 3166-2:' .. alpha2 .. ']] ([[Module:ISO 3166]]).')
end
return cats('nosubdivision', args)