Template:BrowseObjectWithPosition/doc
This is a documentation subpage for Template:BrowseObjectWithPosition. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{BrowseObjectWithPosition|objecttype|objectID|lat=X|lon=Y|zoom=Z|layers=...|text=XY|name=NN}}
layers
is optional.
text
has a higher priority; if not given,name
is used.
For example, if you want to point at a specific location on the River Saar, you can do so as
{{BrowseObjectWithPosition|relation|390393|lat=49.5013947|lon=6.5454511|zoom=15|name=Saarschleife}}
and you'll get:
Browse map of Saarschleife 49°30′05.02″ N, 6°32′43.62″ E
If you do
{{BrowseObjectWithPosition|relation|390393|lat=49.5013947|lon=6.5454511|zoom=15|text=Here is the Saarschleife.}}
you'll get:
Here is the Saarschleife. 49°30′05.02″ N, 6°32′43.62″ E
TemplateData
TemplateData for BrowseObjectWithPosition
Displays a link with coordinates to a map object on OSM.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | 1 | type of object (node/way/relation)
| Line | required |
ID | 2 | ID no. of the OSM object
| Number | required |
lattitude | lat | lattitude of the center of the map
| Number | required |
longitude | lon | longitude of the center of the map
| Number | required |
zoom | zoom | Zoom setting of the map view
| Number | suggested |
tile layer (map style) | layers | For optional selection of an alternative tile layer (C=CycleMap/H=Humanitarian/O=ÖPNVKarte/T=TransportMap/Y=CyclOSM)
| Line | suggested |
text | text | For a free text that will be shown as link.
| Line | optional |
name | name | Name of the linked target on the map that is shown behind the default link texg ''Browse map of''.
| Line | suggested |
Translation
The default words that are put in front of name ( "Browse map of" ) are taken from Template:PlaceLang.
There is an automatic translation into the page's language if the translation exists in Template:PlaceLang.
See also
- Template:BrowseMap - which is not related to an object and doesn't show a marker
- Template:BrowseMapWithMarker - which shows a marker, but isn't related to an object.
- Template:BrowseObject - which shows an arbitrary object.
- Template:BrowseObjectWithMarker - shows an arbitrary object and a marker.