• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Query map

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template has been blanked because maps are not currently working.

Usage

edit

Uses data from Wikidata to create a map of certain items in a particular geographical area. The parameters are:

  • class: (required) the qid of the class of item to display, e.g. for lighthouses it is Q39715
  • ___location or country: (required) the administrative area to display, e.g. for Cornwall it is Q22338583
  • zoom: (optional) the zoom level of the map. If not specified then it will use OpenStreetMap zoom level (P6592) from the ___location, if available, otherwise it will default to level 6 (for locations) or 4 (for countries).
  • caption: (optional) caption to display underneath the map. If not specified then a default caption in the form Map of {{{class}}}s in {{{___location}}} will be used.

Example

edit

A map of lighthouses in Cornwall:

{{Query map|class=Q39715|___location=Q22338583}}

produces the map shown.

See also

edit
  • Template:Map with marks
The above documentation is transcluded from Template:Query map/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Query_map&oldid=1227089035"
Last edited on 3 June 2024, at 16:51

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 3 June 2024, at 16:51 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop