Modulo:Criteri cancellazione immediata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
usa id del namespace |
fix link e aggiungo parametro anchor |
||
Riga 39:
if add_link then
text = string.format('([[WP:%s|%s]]) %s',
self:getAbbreviation(), self:getAbbreviation(), text)
else
text = string.format('([[WP:IMMEDIATA|%s]]) %s', self:getAbbreviation(), text)
end
end
Riga 170 ⟶ 175:
for _, criterion in ipairs(valid_criteria) do
list =
criterion:getText(args.ns, args['tipo testo'], args.link))▼
if args.anchor then
list = list .. string.format('<span id=%s></span>', criterion:getAbbreviation())
end
end
Riga 203 ⟶ 213:
args.link = args.link ~= 'no' and true or false
args.anchor = args.anchor == 'sì' and true or false
return args
|