66 564
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 89: | Riga 89: | ||
for _, Property in pairs(AllP) do | for _, Property in pairs(AllP) do | ||
if (not ExcludeP[Property]) and Item.claims[Property][1].mainsnak.datatype ~= 'external-id' then | if (not ExcludeP[Property]) and Item.claims[Property][1].mainsnak.datatype ~= 'external-id' then | ||
local AccValues = {} | |||
if Property == "P46" then | if Property == "P46" then | ||
-- Collection | -- Collection | ||
Riga 97: | Riga 98: | ||
elseif Property == "P14" then | elseif Property == "P14" then | ||
--Instance | --Instance | ||
AccValues[ | AccValues[#AccValues + 1] = AffiliationTree(frame) | ||
AccValues[#AccValues + 1] = OperatorTree(frame) | AccValues[#AccValues + 1] = OperatorTree(frame) | ||
else | else | ||
local Header = {Property, (mw.wikibase.getLabelByLang(Property, 'it') or mw.wikibase.getLabel(Property)) .. ":"} -- or {Property, mw.wikibase.getLabel(Property) .. ":"} --'-' .. Property .. ":"} | local Header = {Property, (mw.wikibase.getLabelByLang(Property, 'it') or mw.wikibase.getLabel(Property)) .. ":"} -- or {Property, mw.wikibase.getLabel(Property) .. ":"} --'-' .. Property .. ":"} | ||
local Values = Item['claims'][Property] | local Values = Item['claims'][Property] | ||
local AccValues = {} | --local AccValues = {} | ||
for _, SnakValue in pairs(Values) do | for _, SnakValue in pairs(Values) do | ||
local Value = SnakValue.mainsnak.datavalue['value'] | local Value = SnakValue.mainsnak.datavalue['value'] |