Module:Redirect hatnote: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Updated from sandbox to fix argument initialization bug
(text= option)
(Updated from sandbox to fix argument initialization bug)
Line 68:
-- Functionality for adding categories
local categoryTable = {}
local function addCategory(cat)
if cat and cat ~= '' then
-- Add by index to avoid duplicates
Line 90:
local mRedirect = require('Module:Redirect')
local target = mRedirect.getTarget(redirectTitle)
targetTitletarget = targetTitle or target and getTitle(target)
if targetTitletarget and targetTitletarget ~= currentTitle then
addCategory('Articles with redirect hatnotes needing review')
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu