Template:HighwayLineStyle/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:HighwayLineStyle.
It contains usage information, categories and other content or metadata that is not part of the original template.

Usage

Used to make legends of maps that use various line styles. Parameters are all optional:

  • Positional parameters: text, line color, outer casing color, middle casing color
  • Named parameters: (line) width, casing width, and middle (casing) width

The default width is 3px.

Currently does not work for inline calls in paragraphs, only in tables, lists and block elements like divs.

Appearance Wikitext
 Road
{{HighwayLineStyle}}
 Collector
{{HighwayLineStyle|Collector|ffa500}}
 Arterial
{{HighwayLineStyle|Arterial|f00|width=5}}
 Secondary
{{HighwayLineStyle|Secondary|f7fabf|a4b329}}
 Expressway
{{HighwayLineStyle|Expressway|e75|b53|fe5}}
 Major
{{HighwayLineStyle|Major|000|00f|fff|width=1|casingWidth=2|middleWidth=3}}
 
 Arterial
{{HighwayLineStyle||f0f}}{{HighwayLineStyle|Arterial|00f}}

See also