Template:BrowseObject/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

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

This is the TemplateData for this template used by VisualEditor.
TemplateData for BrowseObject

Displays a link to a map object on OSM.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

type of object (node/way/relation)

Example
way
Linerequired
ID2

ID no. of the OSM object

Example
123456789
Numberrequired
tile layer (map style)layers

For optional selection of an alternative tile layer (C=CycleMap/H=Humanitarian/O=ÖPNVKarte/T=TransportMap/Y=CyclOSM)

Example
H
Linesuggested
texttext

For a free text that will be shown as link.

Example
This is the Route 66.
Lineoptional
namename

Name of the linked target on the map that is shown behind the default link texg ''Browse map of''.

Example
Route 66
Linesuggested

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