Module:Redirect hatnote: Difference between revisions

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:
addCategory('Missing redirects')
elseif not redirTitle.isRedirect then
if string.find(redirTitle:getContent(), '#invoke:RfD') then
addCategory('Articles with redirect hatnotes needing review')
addCategory('Articles with redirect hatnotes impacted by RfD')
else
addCategory('Articles with redirect hatnotes needing review')
end
else
local mRedirecttarget = require('Module:Redirect')targetTitle or redirTitle.redirectTarget
local target = mRedirect.getTarget(redirTitle)
target = targetTitle or target and getTitle(target)
if target and target ~= currentTitle then
addCategory('Articles with redirect hatnotes needing review')