Content deleted Content added
move cat testing into separate function |
debugging |
||
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 page with obscure country]]'
elseif cat == 'nosubdivision' then
return '[[:Category:Wikipedia articles with obscure subdivision]]'
end
--end
end
|