Template:BrowseObjectWithMarker/doc
This is a documentation subpage for Template:BrowseObjectWithMarker. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{BrowseObjectWithMarker|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
{{BrowseObjectWithMarker|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
{{BrowseObjectWithMarker|relation|390393|lat=49.5013947|lon=6.5454511|zoom=15|text=This is the Saarschleife.}}
you'll get:
This is the Saarschleife. 49°30′05.02″ N, 6°32′43.62″ E
TemplateData
TemplateData for BrowseObjectWithMarker
Displays a link to a map object with marker icon 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 marker and center of the map
| Number | required |
longitude | lon | longitude of the marker and 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:BrowseObjectWithPosition - shows an arbitrary object at the specified position.