Template:Roundabout View history

m (added other capitalization options)
(Trying for find bug in table usage)
 
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><includeonly>{{#if:{{{1|}}}<!-- check if a road type is defined -->
<noinclude>{{doc}}</noinclude><includeonly>{{#if:{{{1|}}}<!-- check if a road type is defined  
|{{<!--use template-->
-->|{{<!--use template
{{#switch:{{{1|}}}<!-- use the defined road type template -->
-->{{#switch:{{{1|}}}<!-- use the defined road type template  
|FWY|Fwy|fwy|Freeway|freeway = Freeway
-->|FWY|Fwy|fwy|Freeway|freeway = Freeway<!--
|MH|Major Highway|major highway|Major highway = Major Highway
-->|MH|Major Highway|major highway|Major highway = Major Highway<!--
|mH|Minor Highway|minor Highway|Minor Highway|minor highway = Minor Highway
-->|mH|Minor Highway|minor Highway|Minor Highway|minor highway = Minor Highway<!--
|Ramp|ramp = Ramp
-->|Ramp|ramp = Ramp<!--
|PS|ps|Primary Street|primary street|Primary street = Primary Street
-->|PS|ps|Primary Street|primary street|Primary street = Primary Street<!--
|Street|street|St|st = Street
-->|Street|street|St|st = Street<!--
|Local Street|Local street|local street|LS|ls = Local Street
-->|Local Street|Local street|local street|LS|ls = Local Street<!--
|{{{1|}}}<!--default-->
-->|{{{1|}}}<!--default
}}<!-- end switch -->
-->}}<!-- end switch  
|<!-- add style and custom text -->{{color|——&nbsp;|black}}{{#if:{{{2|}}}<!-- if custom is supplied use that -->
-->|<!-- add style and custom text -->{{color|——&nbsp;|black}}{{#if:{{{2|}}}<!-- if custom is supplied use that  
|{{{2|}}}
-->|{{{2|}}}<!--
|<!-- if no custom text is supplied use the road type name -->{{#switch:{{{1|}}}<!-- use the defined road type template -->
-->|<!-- if no custom text is supplied use the road type name -->{{#switch:{{{1|}}}<!-- use the defined road type template  
|FWY|Fwy|fwy|Freeway|freeway = Freeway
-->|FWY|Fwy|fwy|Freeway|freeway = Freeway<!--
|MH|Major Highway|major highway|Major highway = Major Highway
-->|MH|Major Highway|major highway|Major highway = Major Highway<!--
|mH|Minor Highway|minor Highway|Minor Highway|minor highway = Minor Highway
-->|mH|Minor Highway|minor Highway|Minor Highway|minor highway = Minor Highway<!--
|Ramp|ramp = Ramp
-->|Ramp|ramp = Ramp<!--
|PS|ps|Primary Street|primary street|Primary street = Primary Street
-->|PS|ps|Primary Street|primary street|Primary street = Primary Street<!--
|Street|street|St|st = Street
-->|Street|street|St|st = Street<!--
|Local Street|Local street|local street|LS|ls = Local Street
-->|Local Street|Local street|local street|LS|ls = Local Street<!--
|{{{1|}}}<!--default-->
-->|{{{1|}}}<!--default
}}<!-- end switch -->
-->}}<!-- end switch  
}}<!-- end if check for custom text in {{{2}}} -->{{Color|&nbsp;——|black}}<!-- finish styled text -->
-->}}<!-- end if check for custom text in {{{2}}} -->{{Color|&nbsp;——|black}}<!-- finish styled text  
|<!-- pass through style param if present -->{{#if:{{{style|}}}|style={{{style|}}}}}
-->|<!-- pass through style param if present -->{{#if:{{{style|}}}|style={{{style|}}}}}<!--
}}<!-- end road type template -->
-->}}<!-- end road type template  
|<!-- no road type defined -->{{red|ERROR: Please define a road type as the first parameter, see {{Tl|Roundabout}}}}
-->|<!-- no road type defined -->{{red|ERROR: Please define a road type as the first parameter, see {{Tl|Roundabout}}}}<!--
}}<!-- end if {{{1}}} check --></includeonly>
-->}}<!-- end if {{{1}}} check --></includeonly>

Latest revision as of 21:52, 5 June 2017

Documentation icon Template documentation[view] [edit] [history] [purge]

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 —— 
The above documentation is transcluded from Template:Roundabout/doc.
Please add categories to the /doc subpage.
Subpages of this template.