Template:BrowseObject/doc
This is a documentation subpage for Template:BrowseObject. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{BrowseObject|''type''|''id''|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 refer to the River Saar, you can do so as
{{BrowseObject|relation|390393|name=Saar}}
and you'll get:
Browse map of Saar.
If you do
{{BrowseObject|relation|390393|layers=T|text=This is the Saar.}}
you'll get:
This is the Saar.
TemplateData
Displays a link 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 |
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:BrowseObjectWithMarker - shows an arbitrary object and a marker.
- Template:BrowseObjectWithPosition - shows an arbitrary object at the specified position.