Modulo:Criteri cancellazione immediata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
altre migliorie
aggiungo entrypoint per ottenere l'elenco dei list types e text types
Riga 344:
 
local p = {}
 
function p.get_list_types()
local list_types = {}
 
for _, list_type in pairs(ListType) do
table.insert(list_types, list_type.arg)
end
 
return table.concat(list_types, ', ')
end
 
function p.get_text_types()
local text_types = {}
 
for _, text_type in pairs(TextType) do
table.insert(text_types, text_type.arg)
end
 
return table.concat(text_types, ', ')
end
 
function p.get_criterion(frame)
Riga 350 ⟶ 370:
local ns, criterion_code, add_link = args.ns, args.criterio, args.link
 
if criterion_code == nil or cfg[criterion_code] == nil or ns == nil then
return
end
Riga 368 ⟶ 388:
local ns, add_anchor, add_link = args.ns, args.ancore, args.link
local suppressed_criteria = args['escludi criteri']
 
if ns == nil then
return
end
 
local list = list_type.section[ns.id]
local valid_criteria = {}