Módulo:Mensaxe redirección: Diferenzas entre revisións
Contido eliminado Contido engadido
mSen resumo de edición |
Sen resumo de edición |
||
Liña 59:
local formattedRedirect = {}
for k,v in pairs(redirect) do
formattedRedirect[k] = '
end
local text = {
mHatList.andList(formattedRedirect) .. ' ' .. (#redirect == 1 and '
mHatList._forSee(args, #redirect + 1, {title = redirect[1], extratext = args.text})
}
Liña 68:
-- Functionality for adding categories
local categoryTable = {}
-- if cat and cat ~= '' then
-- Add by index to avoid duplicates
-- categoryTable[string.format('[[
-- 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
|