Modulo:Baw-ing hatnote/pagipadasan: Paggiddiatan a nagbaetan dagiti rebision
Content deleted Content added
Lam-ang (tungtungan | aramid) m Pinabaro manipud iti Module:Redirect hatnote/833409182 |
Lam-ang (tungtungan | aramid) 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
if not
addCategory('Dagiti napukaw a baw-ing')
elseif not
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(
if
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
then
-- We are on a mainspace page, and the hatnote starts with something
|