Module:ISO 3166/sandbox: Difference between revisions

Content deleted Content added
tweak error message
tweak
Line 161:
if args[2] then return p.luacode(args) end
end
mw.addWarning('([[Module:ISO 3166]]:) Unrecognized country ' .. code1 .. ' ("' .. args[1] .. '")')
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 .. ']]')
end
return cats('nosubdivision', args)