Modulo:DTGenerico: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Ignore non existent properties
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])
local PropName = mw.wikibase.getLabelByLang(Prop[1], 'it') or mw.wikibase.getLabel(Prop[1])
AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}}
AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}}
if AddSemantic then
if AddSemantic then
mw.smw.set(PropName .. "=" .. PropValue)
mw.smw.set(PropName .. "=" .. PropValue)
end
end
end
end
end
end

Menu di navigazione