Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
test cross-namespace redirects
Jackmcbarn (talk | contribs)
m Reverted edits by Jackmcbarn (talk) to last version by Le Deluge
Tags: Replaced Rollback
 
(3 intermediate revisions by 2 users not shown)
Line 12:
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