Module:Redirect hatnote/sandbox: Difference between revisions

Content deleted Content added
m Declare variable earlier to fix scope error
m Colon, not dot…
(One intermediate revision by the same user not shown)
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')