66 729
contributi
(Link alla stagione) |
m (Ordinals in season description) |
||
Riga 295: | Riga 295: | ||
mw.smw.set("Istanza=Episodio di " .. SeasonData.SeriesAbbr) | mw.smw.set("Istanza=Episodio di " .. SeasonData.SeriesAbbr) | ||
mw.smw.set("Stagione=" .. SeasonData.SeasonNumber) | mw.smw.set("Stagione=" .. SeasonData.SeasonNumber) | ||
local SeasonOrdinals = | |||
{ | |||
[1] = "prima", | |||
[2] = "seconda", | |||
[3] = "terza", | |||
[4] = "quarta", | |||
[5] = "quinta", | |||
[6] = "sesta", | |||
[7] = "settima", | |||
[8] = "ottava", | |||
[9] = "nona", | |||
[10] = "decima" | |||
} | |||
if not mw.wikibase.getDescription() then | if not mw.wikibase.getDescription() then | ||
if not mw.wikibase.getEntity().claims['P20'] then | if not mw.wikibase.getEntity().claims['P20'] then | ||
return "'''''" .. mw.title.getCurrentTitle().text .. "''''' è un episodio della [[Stagione " .. SeasonData.SeasonNumber .. " di " .. SeasonData.SeriesAbbr .. "| | return "'''''" .. mw.title.getCurrentTitle().text .. "''''' è un episodio della [[Stagione " .. SeasonData.SeasonNumber .. " di " .. SeasonData.SeriesAbbr .. "|" .. SeasonOrdinals[SeasonData.SeasonNumber] .. " stagione]] di ''[[" .. SeasonData.SeriesName .. "]]''." .. string.char(10) | ||
else | else | ||
return "''''" .. mw.title.getCurrentTitle().text .. "'''' è " .. mw.wikibase.getEntity().claims['P20'][1].mainsnak.datavalue['value'] .. string.char(10) | return "''''" .. mw.title.getCurrentTitle().text .. "'''' è " .. mw.wikibase.getEntity().claims['P20'][1].mainsnak.datavalue['value'] .. string.char(10) |