66 624
contributi
(Series added to generic Secondary Box builder) |
mNessun oggetto della modifica |
||
Riga 283: | Riga 283: | ||
function p.SecBoxSeries(frame) | function p.SecBoxSeries(frame) | ||
local SeriesQ | local SeriesQ | ||
local Series | local Series = "" | ||
local Short | local Short = "" | ||
local CategoryNames = {} | local CategoryNames = {} | ||
local UL | local UL | ||
Riga 305: | Riga 305: | ||
FullOutput = false | FullOutput = false | ||
elseif mw.wikibase.getEntity().claims["P14"][1].mainsnak.datavalue.value.id == "Q13" then | elseif mw.wikibase.getEntity().claims["P14"][1].mainsnak.datavalue.value.id == "Q13" then | ||
--Instance of the item is "Series" | |||
Series = mw.wikibase.getEntity() | Series = mw.wikibase.getEntity() | ||
elseif mw.wikibase.getEntity().claims["P16"] ~= nil then | |||
Series = mw.wikibase.getEntity(QFromP("P16")) | Series = mw.wikibase.getEntity(QFromP("P16")) | ||
end | end | ||
--Short name of the series | --Short name of the series | ||
--Short = mw.wikibase.getEntity(SeriesQ).claims['P24'][1].mainsnak.datavalue['value'] | if Series == nil or Short =="" then | ||
Short = SeriesTree(frame) | |||
else | |||
--Short = mw.wikibase.getEntity(SeriesQ).claims['P24'][1].mainsnak.datavalue['value'] | |||
Short = Series.claims['P24'][1].mainsnak.datavalue['value'] | |||
end | |||
if Short == "Serie Classica" or Short == "Serie Animata" then | if Short == "Serie Classica" or Short == "Serie Animata" then |