• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Query map

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

Usage

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 (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

A map of lighthouses in Cornwall: <syntaxhighlight lang="wikitext"></syntaxhighlight> produces the map shown.

See also

  • 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://enwiki.freddythechick.net/index.php?title=Template:Query_map&oldid=440473"
Last edited on 3 June 2024, at 17:51

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 3 June 2024, at 17:51.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop