Modulo:StagioniTV/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m t0
mNessun oggetto della modifica
Riga 65:
 
if tipo == 'programma' then
if string.find(mw.title.getCurrentTitle().text, '^.+%(programma.%a+edizione%)$') then
--ifnome = string.findmatch(mw.title.getCurrentTitle().text, '^Episodi d[ei](.+) %(.*serie%a+edizione%)$') then nome = sitelink
nome = sitelink else
elseif mw.title.new(string.format('%s (prima edizione)', sitelink)).exists then
nome = sitelink else
nome = etichetta
end
Riga 72 ⟶ 74:
if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei].+stagione%)$') then
nome = string.match(mw.title.getCurrentTitle().text, '^Episodi d[ei] (.+) %(%a+ stagione%)$')
elseif string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei] (.+)$') then
nome = string.match(mw.title.getCurrentTitle().text, '^Episodi d[ei] (.+)$')
--if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei].+%(.*serie') then nome = sitelink
elseif mw.title.new(string.format('Episodi di %s (prima stagione)', sitelink)).exists or mw.title.new(string.format('Episodi de %s (prima stagione)', sitelink)).exists then
nome = sitelink else