Modulo:Baw-ing hatnote/pagipadasan: Paggiddiatan a nagbaetan dagiti rebision

Content deleted Content added
m Pinabaro manipud iti Module:Redirect hatnote/833409182
m Pinabaro manipud iti Module:Redirect hatnote/1014263439
Linia 68:
-- Functionality for adding categories
local categoryTable = {}
local function addCategory(cat)
if cat and cat ~= '' then
-- Add by index to avoid duplicates
Linia 76:
--Generate tracking categories
local mhOptions = {}
local redirTitle
for k,v in pairs(redirect) do
-- We don't need a tracking category if the template invocation has been
Line 82 ⟶ 83:
and currentTitle.namespace == 0 or currentTitle.namespace == 14
then
redirectTitleredirTitle = redirectTitle or getTitle(v)
if not redirectTitleredirTitle or not redirectTitleredirTitle.exists then
addCategory('Dagiti napukaw a baw-ing')
elseif not redirectTitleredirTitle.isRedirect then
addCategory('Dagiti artikulo nga agraman iti baw-ing ti hatnote a nasken a marepaso')
else
local mRedirect = require('Modulo:Baw-ing')
local target = mRedirect.getTarget(redirectTitleredirTitle)
targetTitletarget = targetTitle or target and getTitle(target)
if targetTitletarget and targetTitletarget ~= currentTitle then
addCategory('Dagiti artikulo nga agraman iti baw-ing ti hatnote a nasken a marepaso')
end
Line 99 ⟶ 100:
-- Generate the options to pass to [[Module:Hatnote]].
if currentTitle.namespace == 0 and not mhOptions.selfref
and redirectTitleredirTitle and redirectTitleredirTitle.namespace ~= 0
then
-- We are on a mainspace page, and the hatnote starts with something