Modulo:StagioniTV/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 21:
 
function p._prova(args)
local template, sfondo, categoria, target, stagioneoedizione, title, preposizione, links, errore
local id, localID, localID2, tipo, titolo, etichetta, nome, sitelink, stagioni
local pageTitle = args[1] or args.titolo
Riga 78:
 
if tipo == 'programma' then
titlepreposizione = mw.title.new(string.format('Categoria:Edizioni de %s', nome)).exists and 'de' or 'di'
preposizione = (title and title.exists) and 'de' or 'di'
elseif tipo == 'serie TV' or tipo == 'animata' then
if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei]') then
preposizione = string.find(mw.title.getCurrentTitle().text, '^Episodi de') and 'de' or 'di'
else title =elseif mw.title.new(string.format('Episodi de %s (prima stagione)', nome)).exists or mw.title.new(string.format('Episodi de %s', nome)).exists then
preposizione = (title and title.exists) and 'de' or 'di'else
preposizione = 'di'
end
end