Modulo:StagioniTV/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 65:
 
if tipo == 'programma' then
if args[2] ~= 'elenco' and args[3] ~= 'elenco' and args[4] ~=string.find(mw.title.getCurrentTitle().text, 'elenco^.+%(%a+edizione%)$') then
ifnome = string.findmatch(mw.title.getCurrentTitle().text, '^(.+) %(%a+edizione%)$') then
nome = string.match(mw.title.getCurrentTitle().text, '^(.+) %(%a+edizione%)$')
preposizione = mw.title.new(string.format('Categoria:Edizioni de %s', nome)).exists and 'de' or 'di'
end
elseif mw.title.new(string.format('%s (prima edizione)', sitelink)).exists then
nome = sitelink
preposizione = mw.title.new(string.format('Categoria:Edizioni de %s', nome)).exists and 'de' or 'di'
elseif mw.title.new(string.format('%s (prima edizione)', sitelinketichetta)).exists then
nome = sitelinketichetta
preposizione = mw.title.new(string.format('Categoria:Edizioni de %s', nomeetichetta)).exists and 'de' or 'di'
else
nome = etichettasitelink
preposizione = mw.title.new(string.format('Categoria:Edizioni de %s', nomesitelink)).exists and 'de' or 'di'
end
elseif tipo == 'serie TV' or tipo == 'animata' then
if args[2] ~= 'elenco' and args[3] ~=string.find(mw.title.getCurrentTitle().text, 'elenco'^Episodi and argsd[4ei] ~= 'elenco') then
if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei].+stagione%)$') then
nome = string.match(mw.title.getCurrentTitle().text, '^Episodi d[ei] (.+) %(%a+ stagione%)$')