You can edit almost every page by Creating an account and confirming your email.

Module:Sandbox/Jackmcbarn

From EverybodyWiki Bios & Wiki

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

local getTarget = require('Module:Redirect').getTarget
local p = {}

local function pagetype(nsText)
	return nsText == '' and 'articles' or (mw.ustring.lower(nsText) .. ' pages')
end

function p.main(frame)
	local currentTitle = mw.title.getCurrentTitle()
	local target = getTarget(currentTitle)
	if target then
		local currentNsText, targetNsText = currentTitle.nsText, mw.title.new(target).nsText
		if currentNsText ~= targetNsText then
			return string.format('[[:Category:Cross-namespace redirects from %s]][[:Category:Cross-namespace redirects to %s]]', pagetype(currentNsText), pagetype(targetNsText))
		end
	end
	return '[[:Category:Pages incorrectly tagged as cross-namespace redirects]]'
end

return p