Module:Redirect hatnote: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Updated module from sandbox. Removes dependency on Module:Redirect, and introduces more fine-grained categorization for redirect problems.
(Updated from sandbox with fix for the other argument initialization bug :/)
(Updated module from sandbox. Removes dependency on Module:Redirect, and introduces more fine-grained categorization for redirect problems.)
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')
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu