Module:Sandbox/DannyS712/afc

Revision as of 01:36, 14 February 2019 by imported>DannyS712 (check namespace)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/DannyS712/afc/doc

local p = {}

function p.checknamespace(frame)
    local t = mw.title.getCurrentTitle()
    ns = t.namespace
    if ns == 118 then 
        return ""
    elseif ns == 2 then
    	return "[[Category:Pending AfC submissions in userspace]]"
    else
    	return "[[Category:Misplaced AfC submissions]]"
    end
end

return p