Content deleted Content added
MusikAnimal (talk | contribs) m Protected "Module:Redirect-distinguish": High-risk Lua module; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
Updated maintenance category output to handle new Category:Articles with redirect hatnotes impacted by RfD case |
||
Line 20:
end
local redirectTitle = mw.title.new(args[1])
if redirectTitle and redirectTitle.exists then▼
--do nothing
if not redirectTitle.isRedirect then▼
args[1] = args[1] .. '[[Category:Articles with redirect hatnotes needing review]]'▼
end▼
▲ elseif not string.match(args[1], 'REDIRECT%d+') and not args[1] == 'TERM' then
args[1] = args[1] .. '[[Category:Missing redirects]]'
if string.find(redirectTitle:getContent(), '#invoke:RfD') then
args[1] = args[1] ..
'[[Category:Articles with redirect hatnotes impacted by RfD]]'
else
args[1] = args[1] ..
▲ end
end
if not args[2] then
|