Template:Roundabout View history

m (Fix include only tag)
m (bug)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
|{{{1|}}}<!--default-->
|{{{1|}}}<!--default-->
}}<!-- end switch -->
}}<!-- end switch -->
|<!-- add style and custom text -->——&nbsp;{{#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 -->
Line 21: Line 21:
|{{{1|}}}<!--default-->
|{{{1|}}}<!--default-->
}}<!-- end switch -->
}}<!-- end switch -->
}}<!-- end if check for custom text in {{{2}}} -->&nbsp;——<!-- 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 08:24, 19 July 2015

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.

Click Expand for details on customizing the output of the Road Type Templates from the documention; included here for your convenience.



Use {{Roundabout}} to create ERROR: Please define a road type as the first parameter, see {{Roundabout}} text.


Use {{Roundabout|custom text}} to create Template:Custom text text.


Use {{Roundabout|style= display: inline-block; width: 250px;}}
to create text with a certain width.

ERROR: Please define a road type as the first parameter, see {{Roundabout}}


Use the |color=old1 parameter to get the old colors design (before June 2015) like this. {{Roundabout|color=old1}}
ERROR: Please define a road type as the first parameter, see {{Roundabout}}
Use the |color=old2 parameter to get the old colors design (before October 2015) like this. {{Roundabout|color=old2}}
ERROR: Please define a road type as the first parameter, see {{Roundabout}}


Each of the road type templates can also be styled to mimic a roundabout when used through the {{Roundabout}} template. Use {{Roundabout|Roundabout}} to create

Template loop detected: Template:Roundabout


See the documentation for Template:Road for more customization options.

For a list of all available road type templates see the category list.

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.

Syntax

{{Roundabout|ROAD TYPE|CUSTOM TEXT|Style=<STYLE CODES>}}

Sample Usage

{{Roundabout|Major Highway|Traffic Circle}}

 —— Traffic Circle ——  

{{Roundabout|Primary Street}}

 —— Primary Street ——  

Because {{Roundabout}} requires a road type, it will display an error message if it is not present.

{{Roundabout}}

ERROR: Please define a road type as the first parameter, see {{Roundabout}}

The above documentation is transcluded from Template:Roundabout/doc.
Please add categories to the /doc subpage.
Subpages of this template.