Modulo:Sandbox/Titore: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
test (-wikidata) |
rb live + test |
||
Riga 68:
preposizione = cfg.titolo[args[1]].preposizione or 'di'
stagioni = cfg.titolo[args[1]].stagioni
etichetta = cfg.titolo[args[1]].etichetta or wikidata._getLabel({ cfg.titolo[args[1]].id, 'it'})
sitelink = cfg.titolo[args[1]].sitelink or mw.wikibase.sitelink( cfg.titolo[args[1]].id )
else
Riga 141:
nome = string.match(mw.title.getCurrentTitle().text, '^Episodi d[ei] (.+)$')
preposizione = string.match(mw.title.getCurrentTitle().text, '^Episodi (d[ei])')
end
elseif args[1] ~= etichetta then
if mw.title.new(string.format('Episodi di %s (prima stagione)', args[1])).exists then
nome = args[1]
preposizione = 'di'
end
elseif mw.title.new(string.format('Episodi di %s (prima stagione)', etichetta)).exists then
|