Modulo:Tracce/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
correggo formula |
fix |
||
Riga 132:
local nums = {}
for k, v in pairs(args) do
local
num = (num == '0' or num:sub(1,1) ~= '0') and num
if num then
local titolo = args['Titolo' ..
if not titolo then
categories[#categories+1] = missing_title
elseif k == 'Titolo' ..
table.insert(nums,
end
end
Line 144 ⟶ 145:
table.sort(nums)
-- categoria di tracciamento se la numerazione delle tracce è discontinua
if nums[1] + #nums - 1 ~= tonumber(nums[#nums]) then
categories[#categories+1] = discontinuous_num
end
Line 172 ⟶ 173:
-- estrae tutti i parametri e li memorizza in una tabella
local args = {}
local
for k, v in pairs(pframe.args) do
if v ~= nil and v ~= '' then
args[k] = v
num = num == '0' or num:sub(1,1) ~= '0'
titles = true▼
if not tracce and num then
end
end
end
-- procede solo se c'è almeno un campo titolo
return
end
|