Template:O
Jump to navigation
Jump to search
This documentation is transcluded from Template:O/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 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)
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 | entity ID number of the data item
| String | required |
lang | 2 | language code to set language for displaying label and tooltip
| String | optional |
anchor | 3 | anchor in the data item page to instantly scroll to
| String | optional |
Examples
- 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
- Template:Q (the equivalent template for Wikidata items)
- Module:OSMWikiBase