Modulo:Sandbox/ppong: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
m Bot: rimuovo no globals obsoleto |
||
(Una versione intermedia di un altro utente non mostrate) | |||
Riga 1:
require("
-- Tabella di configurazione
Riga 257:
local k_min = mw.ustring.lower(k)
if k_min ~= k and args[k_min] then
self:newError("Parametro <
args[k] = nil
elseif k_min ~= k then
Riga 272:
self.voti[s] = config.voti[voto]
elseif voto ~= 'NC' then
self:newError("Valore \"" .. voto .. "\" non riconosciuto per il campo <
end
args[s] = nil
Riga 281:
end
if args.progetto and args.progetto1 then
self:newError("<
args.progetto = nil
elseif args.progetto then
Riga 298:
local imp = args['importanza'..i]
if imp and not config.importanza[imp] then
self:newError("Valore <
end
self.progetti[i]['importanza'] = config.importanza[imp] or 5
args['importanza'..i] = nil
elseif not string.find(k, "^importanza%d+$") then
self:newError("Parametro <
end
end
|