Módulo:Citas: Diferenzas entre revisións

Contido eliminado Contido engadido
Banjo (conversa | contribucións)
Desfíxose a edición 3545692 de Banjo (conversa)
Banjo (conversa | contribucións)
comentado de asignación de categorías de mantemento e propiedades
Liña 120:
Adds a category to z.maintenance_cats using names from the configuration file with additional text if any.
 
 
]]
 
local function add_maint_cat (key, arguments)
table.insert( z.maintenance_cats, substitute (cfg.maint_cats [key], arguments)); -- make name then add to table
end
]]
 
--[[--------------------------< A D D _ P R O P _ C A T >--------------------------------------------------------
 
Adds a category to z.properties_cats using names from the configuration file with additional text if any.
 
 
]]
 
local function add_prop_cat (key, arguments)
table.insert( z.properties_cats, substitute (cfg.prop_cats [key], arguments)); -- make name then add to table
end
]]
 
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------
 
Liña 3.060:
end
end
--[[--
 
if #z.maintenance_cats ~= 0 then
text = text .. ' <span class="citation-comment" style="display:none; color:#33aa33">';
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories
-- text = text .. v .. ' ( [ [:Categoría:' .. v ..'|link] ])';
end
text = text .. '</span>'; -- maintenance mesages (realy just the names of the categories for now)
Liña 3.072:
if in_array(no_tracking_cats, {"", "no", "false", "n"}) then
for _, v in ipairs( z.error_categories ) do
text = text .. '[ [Categoría:' .. v ..'] ]';
end
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories
text = text .. '[ [Categoría:' .. v ..'] ]';
end
for _, v in ipairs( z.properties_cats ) do -- append maintenance categories
text = text .. '[ [Categoría:' .. v ..'] ]';
end
end
]]
return text
end