Modulo:Tracce: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 22:
local function track(args, i)
local titolo = args["Titolo" .. i] or ""
if
local row_elements = {}
table.insert(row_elements, '<li value="' .. tostring(i) .. '">')
Riga 35:
end
local note = args["Note" .. i] or ""
if note ~= "" then table.insert(row_elements, " <small>(" .. note .. ")</small>") end
local minuti = tonumber(args["Minuti" .. i]) or 0
local secondi = tonumber(args["Secondi" .. i]) or 0
Riga 52 ⟶ 48:
local edizioni = args["Edizioni" .. i] or ""
if AutoreTestoeMusica ~= "" then
table.insert(row_elements, " <small>(" .. AutoreTestoeMusica )
elseif AutoreTesto ~= "" then
table.insert(row_elements, " <small>(")
if AutoreMusica ~= "" then
table.insert(row_elements, AutoreTesto .. " – " .. AutoreMusica)
else
table.insert(row_elements, AutoreTesto)
end
elseif AutoreMusica ~= "" then
table.insert(row_elements, " <small>(" .. AutoreMusica)
else
local no_autore = true
Riga 82 ⟶ 74:
end
local extra = args["Extra" .. i] or ""
if extra ~= "" then table.insert(row_elements, " – " .. extra) end
table.insert(row_elements, "</li>\n")
local ListaMedley = args["ListaMedley" .. i] or ""
if ListaMedley ~= "" then table.insert(row_elements, '<div style="padding: 0.3em 0px 0.5em 2.5em;">\n' .. ListaMedley .. '</div>') end
return table.concat(row_elements)
else
|