Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
detect more types of invalid and missing redirects |
update category, see Wikipedia:Categories for discussion/Log/2015 February 21 |
||
Line 143: | Line 143: | ||
category = 'Missing redirects' |
category = 'Missing redirects' |
||
elseif not redirectTitle.isRedirect then |
elseif not redirectTitle.isRedirect then |
||
category = ' |
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 = ' |
category = 'Articles with redirect hatnotes needing review' |
||
end |
end |
||
end |
end |