Template:Marker

From Wikivoyage
Jump to: navigation, search
[view] [edit] [history] [purge] Template-info.svg Template documentation
  • Function: This template automatically numbers listings (Points of Interest) which have geographical coordinates (latitude and longitude) given and is typically used in-line in the prose of articles.
  • Usage: {{marker|type=|name=|lat=|long=}}
  • Required parameters:
|type type of listing (see, do, buy, eat, drink, sleep, listing, around, city, other, go, vicinity)
|name name of listing
|lat latitude of listing, valid range: -90.0 to 90.0
|long longitude of listing, valid range: -180.0 to 180.0
  • Optional parameters:
|zoom zoom level for the full-screen map that opens when the listing number is clicked – default=17, valid range: 1 to 18 (1=Earth, 18=city block)
|url name of listing becomes a link to the specified URL
|image name of image for the thumbnail that pops up when the map marker is clicked – "File:" prefix not necessary
|group a map group to which the marker should be added. This parameter should only be necessary when multiple dynamic maps are used on a page; in such cases, the
Map of Marker
template's "show" parameter should match the "group" parameter for its corresponding marker.
  • Microformat:

The template emits an hCard microformat.

  • Examples:
{{marker|type=see|name=Museum|lat=51.47766|long=0.00115}}
{{marker|type=do|name=Theme Park|lat=51.47766|long=0.00115|zoom=15|url=http://www.example.com/|image=Legoland.jpg}}


TemplateData

This template automatically numbers listings (Points of Interest) which have geographical coordinates (latitude and longitude) given and is typically used in-line in the prose of articles.

Template parameters

This template has custom formatting.

Parameter Description Type Status
Type type

Type of listing (see, do, buy, eat, drink, sleep, listing, around, city, other, go, vicinity)

Default
empty
Example
empty
Auto value
empty
Content required
Name name

Name of listing

Default
empty
Example
empty
Auto value
empty
String required
Latitude lat

Latitude of listing, valid range: -90.0 to 90.0

Default
empty
Example
empty
Auto value
empty
Number required
Longitude long

Longitude of listing, valid range: -180.0 to 180.0

Default
empty
Example
empty
Auto value
empty
Number required
Zoom level zoom

Zoom level for the full-screen map that opens when the listing number is clicked – default=17, valid range: 1 to 18 (1=Earth, 18=city block)

Default
empty
Example
empty
Auto value
empty
Number optional
URL url

Name of listing becomes a link to the specified URL

Default
empty
Example
empty
Auto value
empty
URL optional
Image image

Name of image for the thumbnail that pops up when the map marker is clicked – "File:" prefix not necessary

Default
empty
Example
empty
Auto value
empty
File optional
Group group

A map group to which the marker should be added. This parameter should only be necessary when multiple dynamic maps are used on a page

Default
empty
Example
empty
Auto value
empty
String optional