Modul:PropertyLink: Unterschied zwischen den Versionen
K 4 Versionen importiert |
Keine Bearbeitungszusammenfassung |
||
Zeile 4: | Zeile 4: | ||
local property = entity.claims[propertyName] | local property = entity.claims[propertyName] | ||
if not property then return end--no such property for this item | if not property then return end--no such property for this item | ||
property = property[ | property = property[1] | ||
local propValue = property.mainsnak and property.mainsnak.datavalue | local propValue = property.mainsnak and property.mainsnak.datavalue | ||
if not propValue then return end --property doesnt exist | if not propValue then return end --property doesnt exist | ||
Zeile 16: | Zeile 16: | ||
function property( frame ) | function property( frame ) | ||
return getProperty(string. | return getProperty(string.upper(frame.args[1])) | ||
end | end | ||