Template:OSMLink/doc
A template to create a textual hyperlink to www.openstreetmap.org, zooming and highlighting the object matching the parameters. It acts as an alternative to the template {{On OSM}} which doesn't fit nicely into a field of the {{Information}}. Suggested usage is adding the OSMLink as one of the other_fields parameter. For this purpose, it makes use of the {{Information field}} template, with a fixed field name and the OSM Link as value.
Usage
{{OSMLink |type= |OSM_ID= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
type | Object type | OSM Object type: one of node/way/relation | empty | required |
OSM_ID | OSM ID | OSM Object ID | empty | required |
displayoff | displayoff | option to suppress display of the template; any value will suppress display | empty | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
Relies on:
Example
{{OSMLink|type=way|OSM_ID=254277119}}
renders as:
See also
Localization
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:OSMLink/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:OSMLink/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang
from en
(or whatever language you are translating) to the language code of your language.
Example with Information template
{{Information
|description = Example inside Information template
|source={{own}}
|author={{tl|OSMLink}}
|other fields={{OSMLink|type=way |OSM_ID=254277119 }}
}}
gives:
Description | Example inside Information template |
Source | Own work |
Author | {{OSMLink}} |
OpenStreetMap | Way 254277119 |
TemplateData
A template to create a textual hyperlink to www.openstreetmap.org, zooming and highlighting the object matching the parameters. It acts as an alternative to the template On OSM which doesn't fit nicely into a field of the Information. Suggested usage is adding the OSMLink as one of the other_fields parameter. For this purpose, it makes use of the Information field template, with a fixed field name and the OSM Link as value.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | type | The OSM object type: node, way or relation.
| String | required |
OSM_ID | OSM_ID | The numerical OSM ID of the referenced object.
| Number | required |
displayoff | displayoff | option to suppress display of the template; any value will suppress display.
| Unknown | optional |