• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:WikidataCoord

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:WikidataCoord
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value).

This template takes geographic coordinate data in the form provided by Wikidata (dms), formats the data into the form required by Template:Coord, and then calls Template:Coord to create links to GeoHack. The basic form is:

{{WikidataCoord|wikidata page name|coordinate parameters|template parameters}}
  • wikidata page name – unnamed positional parameter is the Wikidata page name (starting with Q). Default is the current page.
  • coordinate parameters – passed through to Template:Coord unmodified; see §Usage at Template:Coord
  • template parameters – passed through to Template:Coord unmodified; see §Usage at Template:Coord
    • |display= behavior is different from Template:Coord:
      • when |display= is not present, the rendered coordinates are displayed at the top of the page (equivalent to |display=title):
        {{WikidataCoord|Q218501}} → {{WikidataCoord}} – malformed coordinate data(display at top of page). Only for these combinations the use of this template is restricted:
        This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation.
      • when |display= is present but empty, the rendered coordinates are displayed in line (equivalent to |display=inline):
        {{WikidataCoord|Q24012602|display=}} → {{WikidataCoord}} – malformed coordinate data
      • to make the coordinates visible for mobile users, one would use |display=inline,title so that it will display within an infobox and at the top of the page of an article.

Example

For an article that has a |coordinates= parameter within an infobox, use:

|coordinates={{WikidataCoord|display=inline,title}}

See also

  • {{WikidataCoord hqlocation}}
The above documentation is transcluded from Template:WikidataCoord/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://moasspedia.org/w/index.php?title=Template:WikidataCoord&oldid=39380"
Categories:
  • Pages with script errors
  • Lua-based templates
  • Templates using data from Wikidata
  • Coordinates templates
Last edited on 26 October 2021, at 13:24

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 October 2021, at 13:24.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop