Modulo:FictionTV/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m gsub debug
m tipofiction lowercase come nel template
Riga 59:
if args.annoprimatv and args.tipofiction then
inizio, produzione, fine, err = parse_annoprimatv(args.annoprimatv)
args.tipofiction = args.tipofiction:lower()
else
err = true
Line 65 ⟶ 66:
if err then
cat = errorCategory
elseif args.tipofiction:match( == '[Ww]ebseriewebserie') then
-- webserie non è attualmente categorizzata per anno
elseif args.tipofiction:match('[Mm]iniserie [Tt][Vv]== ')miniserie and iniziotv' then
cat = 'Miniserie televisive del ' .. inizio
elseif args.tipofiction:match('[Ff]ilm [Tt][Vv]== ')film and iniziotv' then
cat = 'Film per la televisione del ' .. inizio
elseif args.tipofiction:match( == '[Ss]erieserie [Tt][Vv]tv') then
if inizio then
cat = 'Serie televisive iniziate nel ' .. inizio
Line 80 ⟶ 81:
finecat = 'Serie televisive terminate nel ' .. fine
end
elseif args.tipofiction:match( == '[Ss]erialserial [Tt][Vv]tv') then
if inizio then
cat = 'Serial televisivi iniziati nel ' .. inizio