Module:Redirect hatnote: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(detect more types of invalid and missing redirects)
Line 143: Line 143:
category = 'Missing redirects'
category = 'Missing redirects'
elseif not redirectTitle.isRedirect then
elseif not redirectTitle.isRedirect then
category = 'Invalid redirects'
category = 'Articles with redirect hatnotes needing review'
else
else
local mRedirect = require('Module:Redirect')
local mRedirect = require('Module:Redirect')
Line 149: Line 149:
targetTitle = targetTitle or target and getTitle(target)
targetTitle = targetTitle or target and getTitle(target)
if targetTitle and targetTitle ~= currentTitle then
if targetTitle and targetTitle ~= currentTitle then
category = 'Invalid redirects'
category = 'Articles with redirect hatnotes needing review'
end
end
end
end