Modulo:Tracce/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
aggiungo categorie di errore
m fix local
Riga 28:
local row_elements = {}
table.insert(row_elements, '<li value="' .. tostring(i) .. '">')
local interprete = args["Interprete" .. i] or ""
if interprete ~= "" then table.insert(row_elements, interprete .. " – ") end
if (corsivo and args["Corsivo" .. i] ~= "no") or
Riga 108:
-- compone la testata dell'elenco tracce
local testata = ""
local noautoreno_autore = false
local autoreTestoeMusica = args["Autore testi e musiche"] or ""
if autoreTestoeMusica ~= "" then
testata = "Testi e musiche di " .. autoreTestoeMusica
else
local autoreTesti = args["Autore testi"] or ""
local autoreMusiche = args["Autore musiche"] or ""
if autoreTesti ~= "" then
testata = "Testi di " .. autoreTesti
Riga 121:
testata = "Musiche di " .. autoreMusiche
else
noAutoreno_autore = true
end
end
local edizioni = args["Edizioni"] or ""
if edizioni ~= "" then
if noAutoreno_autore then
testata = "Edizioni musicali " .. edizioni .."."
else
testata = testata .. "; edizioni musicali " .. edizioni .. "."
end
elseif not noAutoreno_autore then
testata = testata .. "."
end
Riga 149:
while true do
local new_track, durata_track = track(args, i, corsivo)
if new_track == nil then break end
table.insert(tracks, new_track)
if somma_durata then durata = durata + durata_track end