Template:Label/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Label. It contains usage information, categories and other content or metadata that is not part of the original template. |
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