Modulo:MultiBand: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m debug
Nessun oggetto della modifica
Riga 9:
for i=1,maxInterval do
currentYear = args["anno" .. i]
if tonumber(currentYear) ><= tonumber(year) then break end
temp = args[param .. i]
if temp ~= nil and temp ~= "" then
result = args[param .. i]result = temp
end
end
end
Riga 23 ⟶ 24:
local pframe = frame:getParent()
for k, v in pairs( pframe.args ) do
-- mappo glii argomentiparametri del template
if v ~=nil then args[k] = v end
-- cerco l'intervallo più recente in base al numero più alto fra "nomeN", "voceN" e "immN"
num = string.match(k, "(?:nome|voce|imm)anno(%d+)$")
if num then
if tonumber(num) > tonumber(maxInterval) then
maxInterval = num
end
Riga 36 ⟶ 37:
local year = args["anno"]
if year == nil then year = getValue("anno", maxInterval) end
print(frame.args[1])
return getValue(frame.args[1], year)
end