Template:O

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

This template is used to link to a OSM data item (OSM WikiBase). If the item has a permanent key ID (P16) statement then it will use that value as the label. Otherwise, it will use the 'en' label.

Usage

{{O | entity ID }}

Parameters

Template used to link to a OSM data item (OSM WikiBase)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
ID1

entity ID number of the data item

Example
Q888
Stringrequired
lang2

language code to set language for displaying label and tooltip

Default
en
Example
fr
Stringoptional
anchor3

anchor in the data item page to instantly scroll to

Example
P6
Stringoptional

Examples

Tag (Q2)
{{O|Q2}}Tag (Q2)
bridge:movable=bascule (Q888)
{{O|Q888}}bridge:movable=bascule (Q888)
bridge:movable=bascule (Pont basculant) (Q888)
{{O|Q888|fr}}bridge:movable=bascule (Pont basculant) (Q888) (in French)
bridge:movable=bascule (Q888)
{{O|Q888||P6}}bridge:movable=bascule (Q888) (scrolls to status (P6) statement)
bridge:movable=bascule (Q888)
{{O|Q888|de|P6}}bridge:movable=bascule (Q888) (in German and scrolls to status (P6) statement)
Shape_Area (Q1001)
{{O|Q1001}}Shape_Area (Q1001)
instance of (P2)
{{O|P2}}instance of (P2)
key for this tag (P10)
{{O|P10}}key for this tag (P10)

See also