Modul:Redirect hatnote: Unterschied zwischen den Versionen
update category, see Wikipedia:Categories for discussion/Log/2015 February 21
(detect more types of invalid and missing redirects) |
(update category, see Wikipedia:Categories for discussion/Log/2015 February 21) |
||
Zeile 143: | Zeile 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') | ||
Zeile 149: | Zeile 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 |