66 447
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 97: | Riga 97: | ||
if Depth > 1 and CurrentItem['claims']['P14'] then | if Depth > 1 and CurrentItem['claims']['P14'] then | ||
--Set instance of | --Set instance of | ||
ResultsArray[#ResultsArray + 1] = ">1" | |||
InstanceItem = mw.wikibase.getEntity(CurrentItem['claims']['P14'][1].mainsnak.datavalue.value['id']) | InstanceItem = mw.wikibase.getEntity(CurrentItem['claims']['P14'][1].mainsnak.datavalue.value['id']) | ||
if Depth > 2 and InstanceItem['claims']['P14'] then | if Depth > 2 and InstanceItem['claims']['P14'] then | ||
--Set instance of instance | --Set instance of instance | ||
ResultsArray[#ResultsArray + 1] = ">2" | |||
InstanceInstanceItem = mw.wikibase.getEntity(InstanceItem['claims']['P14'][1].mainsnak.datavalue.value['id']) | InstanceInstanceItem = mw.wikibase.getEntity(InstanceItem['claims']['P14'][1].mainsnak.datavalue.value['id']) | ||
end | end | ||
end | end | ||
ResultsArray[#ResultsArray + 1] = Property .. " - " .. Depth .. " - " .. tostring(Aggregate) | |||
return ResultsArray | |||
--[=[if CurrentItem.claims[Property] then | --[=[if CurrentItem.claims[Property] then |