66 654
contributi
(First letter only in case of error in P8) |
(Error in case of no linked entity) |
||
Riga 158: | Riga 158: | ||
local AZInstancesMember = {Q23 = "Personaggi", Q18 = "Specie", Q95 = "Pianeti", Q19 = "Cast", Q52 = "Cast"} | local AZInstancesMember = {Q23 = "Personaggi", Q18 = "Specie", Q95 = "Pianeti", Q19 = "Cast", Q52 = "Cast"} | ||
--local CurrentItem = mw.wikibase.getEntity() | --local CurrentItem = mw.wikibase.getEntity() | ||
local CurrentQ | local CurrentQ | ||
local AZCategory = '' | local AZCategory = '' | ||
if mw.wikibase.getEntity() then | |||
CurrentQ = mw.wikibase.getEntity().claims['P14'][1].mainsnak.datavalue.value.id | |||
else | |||
return "" | |||
end | |||
if AZInstancesMember[CurrentQ] ~= nil then | if AZInstancesMember[CurrentQ] ~= nil then |