66 606
contributi
mNessun oggetto della modifica |
(Ignore non existent properties) |
||
Riga 102: | Riga 102: | ||
for _, Prop in pairs(POnTree) do | for _, Prop in pairs(POnTree) do | ||
local PropValue = table.concat(PropertiesOnTree(Prop[1], Prop[2], Prop[3])) | local PropValue = table.concat(PropertiesOnTree(Prop[1], Prop[2], Prop[3])) | ||
if PropValue ~= nil then | if (PropValue ~= nil) and (PropValue ~= "") then | ||
local PropName = mw.wikibase.getLabelByLang(Prop[1], 'it') or mw.wikibase.getLabel(Prop[1]) | |||
AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}} | |||
if AddSemantic then | |||
mw.smw.set(PropName .. "=" .. PropValue) | |||
end | |||
end | end | ||
end | end |