Jump to content

Template:Highway system OSM map/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
m syntaxhighlight lang="wikitext"
 
(12 intermediate revisions by 4 users not shown)
Line 5: Line 5:


== Usage ==
== Usage ==
<syntaxhighlight lang="wikitext">
<pre>
{{Highway system OSM map
{{Highway system OSM map
| highway_system_qid =
| highway_system_qid =
Line 16: Line 16:
| text =
| text =
| zoom =
| zoom =
| length = yes
| length = <!-- If yes, shows length of each road in the system -->
| stroke-width = <!-- 3 by default, 2 is a good size for dense networks -->
}}
}}
</syntaxhighlight>
</pre>

== Issues ==
Some highway systems will not display correctly if the length parameter is set, because some highway entries will have multiple values for the length property at Wikidata.


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Infrastructure templates]]
[[Category:Infrastructure templates]]
[[Category:OpenStreetMap templates]]

}}</includeonly>
}}</includeonly>

Latest revision as of 09:11, 28 May 2023

For the template to work, the transport network (P16) property must be set on the Wikidata entity linked to the article.

Usage

[edit]
{{Highway system OSM map
| highway_system_qid = 
| frame-lat          = 
| frame-long         = 
| frame-width        = 
| frame-height       = 
| frame-align        = 
| plain              = 
| text               = 
| zoom               = 
| length             = <!-- If yes, shows length of each road in the system -->
| stroke-width       = <!-- 3 by default, 2 is a good size for dense networks -->
}}

Issues

[edit]

Some highway systems will not display correctly if the length parameter is set, because some highway entries will have multiple values for the length property at Wikidata.