Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
Updated from sandbox with fix for the other argument initialization bug :/ |
Updated module from sandbox. Removes dependency on Module:Redirect, and introduces more fine-grained categorization for redirect problems. |
||
Line 87: | Line 87: | ||
addCategory('Missing redirects') |
addCategory('Missing redirects') |
||
elseif not redirTitle.isRedirect then |
elseif not redirTitle.isRedirect then |
||
if string.find(redirTitle:getContent(), '#invoke:RfD') then |
|||
⚫ | |||
addCategory('Articles with redirect hatnotes impacted by RfD') |
|||
else |
|||
⚫ | |||
end |
|||
else |
else |
||
local |
local target = targetTitle or redirTitle.redirectTarget |
||
local target = mRedirect.getTarget(redirTitle) |
|||
target = targetTitle or target and getTitle(target) |
|||
if target and target ~= currentTitle then |
if target and target ~= currentTitle then |
||
addCategory('Articles with redirect hatnotes needing review') |
addCategory('Articles with redirect hatnotes needing review') |