Template:Label
Jump to navigation
Jump to search
This documentation is transcluded from Template:Label/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template returns the label for a particular data item, using Module:OSMWikiBase. If any of these properties are available, shows property value together with localized label (non-English): permanent key ID (P16), permanent tag ID (P19), permanent relation role ID (P21). Otherwise, the label in the requested language or English.
Usage
{{Label|entity id|optional lang code}}
Examples
- bridge:movable=bascule (Q888)
- {{Label|Q888}} → bridge:movable=bascule
- bridge:movable=bascule (Q888) in French
- {{Label|Q888|fr}} → bridge:movable=bascule (Pont basculant)
- Shape_Area (Q1001)
- {{Label|Q1001}} → Shape_Area