66 492
contributi
mNessun oggetto della modifica |
(Species category added) |
||
Riga 214: | Riga 214: | ||
-- Check if item has Species (P65) property | -- Check if item has Species (P65) property | ||
if mw.wikibase.getEntity().claims['P65'] ~= nil then | if mw.wikibase.getEntity().claims['P65'] ~= nil then | ||
SpeciesCategory = "[[Category:" .. AZInstancesMember[CurrentQ] .. " - " .. mw.wikibase.getLabelByLang(mw.wikibase.getEntity().claims['P65'][1].mainsnak.datavalue.value, "it") .. "]]" | SpeciesCategory = "[[Category:" .. AZInstancesMember[CurrentQ] .. " - " .. mw.wikibase.getLabelByLang(mw.wikibase.getEntity().claims['P65'][1].mainsnak.datavalue.value.id, "it") .. "]]" | ||
end | end | ||