• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If this site has been useful to you, please give today.
  • About Wikivoyage
  • Disclaimer
Wikivoyage

Template:Marker

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
  • 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=|wikidata=}}
  • Recommended parameters:
    • |type type of listing (see, do, buy, eat, drink, sleep, listing, around, city, other, go, vicinity) — defaults to "listing"
    • |name name of listing
    • Either
      • |wikidata if specified, the missing name/lat/long/image fields will be fetched from the respective wikidata entry fields
      or
      • |lat latitude of listing, valid range: -90.0 to 90.0; specify NA to disallow fetching the value from wikidata
      • |long longitude of listing, valid range: -180.0 to 180.0; specify NA to disallow fetching the value from wikidata
  • 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 {{mapframe}} 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}}
  • Associated template:
    • Template:Listing for a full listing
    • Module:TypeToColor converts the "type" value passed to this template to a color
    • Module:Marker


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[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

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

Default
listing
Contentsuggested
Namename

Name of listing

Stringsuggested
wikidata IDwikidata

If specified, the missing name/lat/long/image fields will be fetched from the respective wikidata entry fields.

Stringsuggested
Latitudelat

Latitude of listing, valid range: -90.0 to 90.0; Specify NA to disallow fetching the value from wikidata or when coordinates are not applicable

Numbersuggested
Longitudelong

Longitude of listing, valid range: -180.0 to 180.0; Specify NA to disallow fetching the value from wikidata or when coordinates are not applicable

Numbersuggested
Zoom levelzoom

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
17
Numberoptional
URLurl

Name of listing becomes a link to the specified URL

URLoptional
Imageimage

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

Fileoptional
Groupgroup

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
Same as type (which itself defaults to listing)
Stringoptional
Is listing?islisting

If set to "yes", wraps the marker with a <span class="vcard">.

Stringoptional
The above documentation is transcluded from Template:Marker/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikivoyage.org/w/index.php?title=Template:Marker&oldid=4712964"
Last edited on 18 August 2023, at 22:38

Languages

    • বাংলা
    • Deutsch
    • Ελληνικά
    • Español
    • Français
    • עברית
    • हिन्दी
    • Bahasa Indonesia
    • Italiano
    • 日本語
    • Nederlands
    • Polski
    • پښتو
    • Português
    • Русский
    • တႆး
    • Türkçe
    • Українська
    • Tiếng Việt
    • 中文
    Wikivoyage
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikivoyage
    • Disclaimer
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop