Modulo:Criteri cancellazione immediata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiungo controllo |
divido entrypoint |
||
Riga 173:
end
-- =============================================================================▼
-- Funzioni esportate▼
-- =============================================================================▼
local p = {}▼
▲function p.main(frame)
local args = getArgs(frame, { parentOnly = true })
args.criterio, args[1] = args[1], nil
if args.ns == 'Principale' then
Riga 198 ⟶ 194:
args.link = args.link ~= 'no' and true or false
if mw.site.namespaces[args.ns] == nil and args.ns ~= 'default' then▼
end
▲ return
▲-- =============================================================================
▲-- Funzioni esportate
▲-- =============================================================================
▲local p = {}
function p.get_criterion(frame)
local args = get_args(frame)
if args.criterio and (mw.site.namespaces[args.ns] ~= nil or args.ns == 'default') then
return get_criterion(args)
end
end
function p.list_criteria(frame)
local args = get_args(frame)
return list_criteria(args)
end
|