Module:Redirect-distinguish: Difference between revisions

Excluded pages outside the article namespace from tracking categories per request
(Updated maintenance category output to handle new Category:Articles with redirect hatnotes impacted by RfD case)
(Excluded pages outside the article namespace from tracking categories per request)
Line 20:
end
local redirectTitle = mw.title.new(args[1])
local currentTitle = currentTitle or mw.title.getCurrentTitle()
if string.match(args[1], 'REDIRECT%d+') or args[1] == 'TERM' then
if
if string.match(args[1], 'REDIRECT%d+') or args[1] == 'TERM' then
args[1] == 'TERM' or
currentTitle.namespace ~= 0
then
--do nothing
elseif not redirectTitle or not redirectTitle.exists then
Anonymous user