67 247
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 106: | Riga 106: | ||
end | end | ||
--[=[ | |||
ResultsArray[#ResultsArray + 1] = Property .. " - " .. Depth .. " - " .. tostring(Aggregate) | ResultsArray[#ResultsArray + 1] = Property .. " - " .. Depth .. " - " .. tostring(Aggregate) | ||
ResultsArray[#ResultsArray + 1] = Property .. " - " .. Depth .. " - " .. tostring(InstanceInstanceItem) | ResultsArray[#ResultsArray + 1] = Property .. " - " .. Depth .. " - " .. tostring(InstanceInstanceItem) | ||
if CurrentItem.claims[Property] then | |||
ResultsArray[#ResultsArray + 1] = LabelOrLink(CurrentItem.claims[Property][1].mainsnak.datavalue.value.id) | ResultsArray[#ResultsArray + 1] = LabelOrLink(CurrentItem.claims[Property][1].mainsnak.datavalue.value.id) | ||
if not Aggregate then | if not Aggregate then | ||
Riga 117: | Riga 118: | ||
for _, Item in pairs({CurrentItem, InstanceItem, InstanceInstanceItem}) do | for _, Item in pairs({CurrentItem, InstanceItem, InstanceInstanceItem}) do | ||
ResultsArray[#ResultsArray + 1] = "For - " .. Item.id | --ResultsArray[#ResultsArray + 1] = "For - " .. Item.id | ||
if Item ~= nil and Item.claims[Property] then | if Item ~= nil and Item.claims[Property] then | ||
ResultsArray[#ResultsArray + 1] = Item.id .. " - " .. Property | ResultsArray[#ResultsArray + 1] = Item.id .. " - " .. Property |