Module:ISO 3166/sandbox: Difference between revisions

Content deleted Content added
debug
synv
Line 11:
--[[----------C A T S----------]]-- -- Assign error categories
local function cats(cat, args)
--if not (args.nocat and args.nocat == 'true') and mw.title.getCurrentTitle().namespace == 0 then
if cat == 'nocountry' then
return '[[:Category:Wikipedia pagearticles with obscure country]]'
elseif cat == 'nosubdivision' then
return '[[:Category:Wikipedia articles with obscure subdivision]]'
end
--end
return ''
end
 
Line 163 ⟶ 164:
return p.luacode(args)
end
return cats('nosubdivision', args) .. 'Code2 ="' .. code2 .. '"'
end
end