Modul:PropertyLink: Unterschied zwischen den Versionen
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 | ||
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) |