66 773
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 66: | Riga 66: | ||
local CollectionTable = '' | local CollectionTable = '' | ||
local ExcludeP = {P3 = true, P14 = false, P26 = true, P30 = true, P37 = true, P58 = true, P68 = true, P52 = true, P79 = true, P90 = true} | local ExcludeP = {P3 = true, P14 = false, P26 = true, P30 = true, P37 = true, P58 = true, P68 = true, P52 = true, P79 = true, P90 = true} | ||
local POnTree = {} | |||
local Item = mw.wikibase.getEntity() | local Item = mw.wikibase.getEntity() | ||
local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | ||
Riga 98: | Riga 99: | ||
elseif Property == "P14" then | elseif Property == "P14" then | ||
--Instance | --Instance | ||
POnTree = {{"P88", 3, false}} | |||
for _, Prop in pairs(POnTree) do | |||
local PropValue = table.concat(PropertiesOnTree(Prop[1], Prop[2], Prop[3])) | |||
AllRows[#AllRows + 1] = {{Prop[1], "Classe navale:"}, PropValue} | |||
if AddSemantic then | |||
mw.smw.set("Classe navale=" .. PropValue) | |||
end | |||
end | |||
AllRows[#AllRows + 1] = {{"P40", "Affiliazione:"}, {AffiliationTree(frame)}} | AllRows[#AllRows + 1] = {{"P40", "Affiliazione:"}, {AffiliationTree(frame)}} | ||
AllRows[#AllRows + 1] = {{"P41", "Operatore:"}, {OperatorTree(frame)}} | AllRows[#AllRows + 1] = {{"P41", "Operatore:"}, {OperatorTree(frame)}} |