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

Template:Wikidata ___location map/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Wikidata ___location map
This is the template sandbox page for Template:Wikidata ___location map (diff).
Template documentation[view] [edit] [history] [purge]

This is a wrapper for {{Location map}} which adds (1) some error handling and (2) logic for determining the map name. It is intended to be used in the code for infoboxes which retrieve information from WikiData. It is not intended to be used directly in articles.

Usage

edit
| image = {{Wikidata ___location map
  | nomap = {{{nomap|}}}
  | coordinates = {{{coordinates|}}}
  | locmapin = {{{locmapin|}}}<!-- or {{{pushpin_map|}}} or {{{location_map|}}} or {{{map_type|}}} -->
  | relief = {{{map_relief|1}}}<!-- or {{{pushpin_map_relief|1}}} or {{{relief|1}}} -->
  | map_width = {{{map_width|}}}<!-- or {{{pushpin_mapsize|}}} or {{{location_map_width}}} -->
  | alt = {{{map_alt|}}}<!-- or {{{pushpin_map_alt|}}} or {{{location_map_alt|}}} -->
  | name = {{{name|}}}
  | map_caption = {{{map_caption|}}}<!-- or  {{{pushpin_map_caption|}}} or {{{location_map_caption|}}} -->
  | trackingcat = 
  }}
  • Any non-blank value passed to |nomap= suppresses the output.
  • If |coordinates= is blank and no coordinates exist on wikidata, then no map is generated.
  • If |locmapin= is not blank, the corresponding {{___location map}} is used without any attempt to determine it from wikidata.
  • If |locmapin= is blank, then the subtemplate {{Wikidata ___location map/mapname}} is used to determine an appropriate ___location map.
  • If there are any errors, the transcluding page is added to trackingcat and Category:Location maps with possible errors and possibly Category:Pages with script errors.
  • Any articles transcluding this template with |locmapin= not blank are added to Category:Articles using Wikidata ___location map with locally defined parameters

Templates using this template

edit
  • {{Infobox observatory}}
  • {{Infobox power station}}
  • {{Infobox pyramid}}
  • {{Infobox telescope}}
  • {{Infobox World Heritage Site}}
  • {{Infobox museum/wikidata}}

See also

edit
  • {{Wikidata ___location}}
  • {{Location map}}
  • {{Coord}}
The above documentation is transcluded from Template:Wikidata ___location map/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wikidata_location_map/sandbox&oldid=1265702424"
Last edited on 28 December 2024, at 06:31

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 28 December 2024, at 06:31 (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