Template:Maplink-superroute/doc: Difference between revisions
No edit summary |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 11:43, 28 April 2022
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
This is a documentation subpage for Template:Maplink-superroute. It contains usage information, categories and other content that is not part of the original template page. |
<templatestyles src="Module:Hatnote/styles.css"></templatestyles>
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.