Template:Label

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

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), relation role ID (P21). Otherwise, the label in the requested language or English.

Usage

{{Label|entity id|optional lang code}}

Examples

tag (Q2)
{{Label|Q2}} → tag
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