66 554
contributi
Nessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 77: | Riga 77: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
function p.ShortCodeFromDT(frame) | function p.ShortCodeFromDT(frame) | ||
local CurrentEntity = mw.wikibase.getEntity() | |||
local Acronym | |||
local Season | |||
local Episode | |||
Acronym = PropertiesOnTree("P25", 3, false, false, true) | |||
Season = CurrentEntity.claims['P18'][1].mainsnak.datavalue.value['amount'] | |||
Episode = CurrentEntity.claims['P178'][1].mainsnak.datavalue.value['amount'] | |||
return p._BuildShortCode(Acronym, Season, Episode) | |||
end | end | ||