Zum Inhalt springen

Modul:PropertyLink: Unterschied zwischen den Versionen

Keine Änderung der Größe ,  16. Mai 2016
keine Bearbeitungszusammenfassung
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[0]
     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.lower(frame.args[1]))
     return getProperty(string.upper(frame.args[1]))
end
end
   
   
11.008

Bearbeitungen

Cookies helfen uns bei der Bereitstellung von Android Wiki. Durch die Nutzung von Android Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.