mNo edit summary |
Kentsmith9 (talk | contribs) m (Updated doc page) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
This template creates a road type text label using one of the [[:Category:Road Type Templates|Road Type Templates]], and formats to mimic a roundabout segment in WME. It adds "——" before and after the name. | This template creates a road type text label using one of the [[:Category:Road Type Templates|Road Type Templates]], and formats to mimic a roundabout segment in WME. It adds "——" before and after the name. | ||
{{User:PesachZ/Expand|Template:Freeway/doc|customizing the output of the Road Type Templates from the | <!-- This doc page is based on the actual pagename, so this inclusion does not produce the desired results. | ||
{{User:PesachZ/Expand|Template:Freeway/doc|customizing the output of the Road Type Templates from the documentation; included here for your convenience.}} --> | |||
== Parameters == | == Parameters == | ||
Line 9: | Line 10: | ||
It requires one unnamed parameter to define the road type, and accepts a second unnamed parameter to use custom text. | It requires one unnamed parameter to define the road type, and accepts a second unnamed parameter to use custom text. | ||
It also will pass through a {{para|style}} parameter if one provided. | It also will pass through a {{para|style}} parameter if one provided. | ||
Also review the documentation for {{tl|Freeway}} for more information on styles and other formatting. | |||
=== Syntax === | === Syntax === | ||
Line 14: | Line 17: | ||
=== Sample Usage === | === Sample Usage === | ||
{{Tlx|Roundabout|Major Highway|Traffic Circle}} | This code: | ||
:{{Tlx|Roundabout|Major Highway|Traffic Circle}} | |||
{{Roundabout|Major Highway|Traffic Circle}} | will produce: | ||
:{{Roundabout|Major Highway|Traffic Circle}} | |||
<br /> | |||
---- | ---- | ||
This code: | |||
:{{Tlx|Roundabout|Primary Street}} | |||
{{Roundabout|Primary Street}} | |||
will produce: | |||
:{{Roundabout|Primary Street}} | |||
<br /> | |||
---- | ---- | ||
This code is missing a required parameter: | |||
:{{Tlx|Roundabout}} | |||
and will produce this error message: | |||
:{{Roundabout}} | |||
== See also == | |||
{{Road type templates}} | |||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> |
Latest revision as of 22:24, 5 June 2017
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template creates a road type text label using one of the Road Type Templates, and formats to mimic a roundabout segment in WME. It adds "——" before and after the name.
Parameters
It requires one unnamed parameter to define the road type, and accepts a second unnamed parameter to use custom text.
It also will pass through a |style=
parameter if one provided.
Also review the documentation for {{Freeway}} for more information on styles and other formatting.
Syntax
{{Roundabout|ROAD TYPE|CUSTOM TEXT|Style=<STYLE CODES>}}
Sample Usage
This code:
{{Roundabout|Major Highway|Traffic Circle}}
will produce:
- —— Traffic Circle ——
This code:
{{Roundabout|Primary Street}}
will produce:
- —— Primary Street ——
This code is missing a required parameter:
{{Roundabout}}
and will produce this error message:
- ERROR: Please define a road type as the first parameter, see {{Roundabout}}
See also
Template | Display |
---|---|
{{Freeway}} | Freeway |
{{Major Highway}} | Major Highway |
{{Minor Highway}} | Minor Highway |
{{Ramp}} | Ramp |
{{Primary Street}} | Primary Street |
{{Street}} | Street |
{{Dirt Road / 4X4 Trail}} | Dirt Road / 4X4 Trail |
{{Private Road}} | Private Road |
{{Parking Lot Road}} | Parking Lot Road |
{{Walking Trail}} | | | | | | Walking Trail | | | | | |
{{Pedestrian Boardwalk}} | | | | | | Pedestrian Boardwalk | | | | | |
{{Stairway}} | | | | | | Stairway | | | | | |
{{Ferry}} | • • • • Ferry • • • • |
{{Railroad}} | |-|-|-|-|-|-|-|-|-| Railroad |-|-|-|-|-|-|-|-|-| |
{{Runway/Taxiway}} | |||||||| |||||||| |||||||| |||||||| Runway/Taxiway |||||||| |||||||| |||||||| |||||||| |
{{Road}} | Road |
{{Roundabout}} | —— Roundabout —— |