Zum Inhalt springen

Modul:PropertyLink: Unterschied zwischen den Versionen

235 Bytes hinzugefügt ,  25. November 2019
link to URL if qualifier has one
Keine Bearbeitungszusammenfassung
(link to URL if qualifier has one)
 
Zeile 42: Zeile 42:
     if not propValue then return end --property doesnt exist
     if not propValue then return end --property doesnt exist


return getLinkLabel(propValue, frame)
local label = getLinkLabel(propValue, frame)
if not label == propValue then
return label
end
if property.qualifiers and property.qualifiers["P27"] then
return mw.ustring.format( "[%s %s]", property.qualifiers["P27"][1].datavalue.value, label )
end
return label
end
end
 
function property( frame )
function property( frame )
     return getProperty(string.upper(frame.args[1], frame), frame)
     return getProperty(string.upper(frame.args[1], frame), frame)
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.