Module:ISO 3166/sandbox: Difference between revisions

Content deleted Content added
Fail faster if parameter exists but is blank
sync
Line 72:
}
text = mw.text.decode(text) -- Decode HTML entities (passed from wikidata?)
text = mw.text.unstripNoWiki(text) -- Remove <nowiki> tags
text = mw.ustring.upper(text) -- Case insensitivity
Line 114 ⟶ 115:
or '[[Category:Wikipedia page with obscure country]]'
local catnosubdivision = (args.nocat and args.nocat == 'true') and ''
or '[[Category:Wikipedia pagearticles with obscure subdivision]]'
if (code1 or "") == "" then
Line 248 ⟶ 249:
or '[[Category:Wikipedia page with obscure country]]'
local catnosubdivision = (args.nocat and args.nocat == 'true') and ''
or '[[Category:Wikipedia pagearticles with obscure subdivision]]' or ''
local tracking = ''
local targs = {}