Modulo:DTGenerico: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Nessun cambiamento nella dimensione ,  19 ago 2021
Properties on tree
Nessun oggetto della modifica
(Properties on tree)
Riga 99: Riga 99:
elseif Property == "P14" then
elseif Property == "P14" then
--Instance
--Instance
POnTree = {{"P40", 3, false}, {"P41", 3, false}}
POnTree = {{"P40", 3, false}, {"P41", 3, false}, {"P88", 3, false}}
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]))
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 .. "PropName:"}, {PropValue}}
AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}}
if AddSemantic then
if AddSemantic then
mw.smw.set(PropName .. "PropNameSMW=" .. PropValue)
mw.smw.set(PropName .. "=" .. PropValue)
end
end
end
end

Menu di navigazione