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

Template:Maplink-superroute/sandbox

  • Language
  • Watch
  • View source
< Template:Maplink-superroute
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Maplink-superroute (diff).
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{Maplink-superroute}}
Main page: Template:Maplink/doc

This template was created to counteract a limitation of the Kartographer module, that being that nested routes would not be recognized by the plugin. This resulted in a clash with OpenStreetMap's policy of nesting route relationships to avoid handling too much data at once. As an example, long interstate highways are divided into sections at state lines both on Wikipedia and on OSM. If the state's relations on OSM are tagged with the associated state's Wikipedia article, a map will display as intended. However, the overarching route will not work as intended, since the tagged relation nests other relations. This template circumvents this by retrieving the data for a route's sub-pages by Wikidata query, based on a "part of" relationship.

All parameters of the Maplink template can be overriden or added. There is, as of right now, one parameter that doesn't fall neatly into this category; overriding the "id" parameter will override the id of the superroute; as an example, adding the parameter id=Q406204 will show the map for U.S. Route 1 as a whole.

The above documentation is transcluded from Template:Maplink-superroute/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://enwiki.freddythechick.net/index.php?title=Template:Maplink-superroute/sandbox&oldid=11287641"
Last edited on 16 May 2021, at 14:47

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 16 May 2021, at 14:47.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop