Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(fix the Module:Redirect syntax (will require an update to that module first)) |
|||
Line 155: | Line 155: | ||
else |
else |
||
mRedirect = require('Module:Redirect') |
mRedirect = require('Module:Redirect') |
||
local target = mRedirect. |
local target = mRedirect.getTarget(redirectTitle) |
||
local targetTitle = getTitle(target) |
local targetTitle = target and getTitle(target) |
||
if not mw.title.equals(targetTitle, titleObj) then |
if targetTitle and not mw.title.equals(targetTitle, titleObj) then |
||
category = '[[Category:Invalid redirects]]' |
category = '[[Category:Invalid redirects]]' |
||
end |
end |