Módulo:Mensaxe redirección: Diferenzas entre revisións

Contido eliminado Contido engadido
Banjo (conversa | contribucións)
mSen resumo de edición
Banjo (conversa | contribucións)
Sen resumo de edición
Liña 59:
local formattedRedirect = {}
for k,v in pairs(redirect) do
formattedRedirect[k] = '"<<' .. v .. '">>'
end
local text = {
mHatList.andList(formattedRedirect) .. ' ' .. (#redirect == 1 and 'redirectsredirixe' or 'redirectredirixen') .. ' hereaquí.',
mHatList._forSee(args, #redirect + 1, {title = redirect[1], extratext = args.text})
}
Liña 68:
-- Functionality for adding categories
local categoryTable = {}
-- function addCategory(cat)
-- if cat and cat ~= '' then
-- Add by index to avoid duplicates
-- categoryTable[string.format('[[CategoryCategoría:%s]]', cat)] = true
-- end
-- end
--Generate tracking categories
local mhOptions = {}
Liña 84:
redirectTitle = redirectTitle or getTitle(v)
if not redirectTitle or not redirectTitle.exists then
--addCategory('Missing redirects')
elseif not redirectTitle.isRedirect then
--addCategory('Articles with redirect hatnotes needing review')
else
local mRedirect = require('Módulo:Redirección')
local target = mRedirect.getTarget(redirectTitle)
targetTitle = targetTitle or target and getTitle(target)
--if targetTitle and targetTitle ~= currentTitle then
-- addCategory('Articles with redirect hatnotes needing review')
--end
end
end