m (Created Redirect) |
(Página creada con «<noinclude>{{doc}}</noinclude><includeonly>{{#if:{{{1|}}}<!-- check if a road type is defined --> |{{<!--use template--> {{#switch:{{{1|}}}<!-- use the defined road type te...») |
||
(No se muestra una edición intermedia de otro usuario) | |||
Línea 1: | Línea 1: | ||
# | <noinclude>{{doc}}</noinclude><includeonly>{{#if:{{{1|}}}<!-- check if a road type is defined --> | ||
|{{<!--use template--> | |||
{{#switch:{{{1|}}}<!-- use the defined road type template --> | |||
|FWY|FWY|FWY|Freeway|freeway = Freeway | |||
|MH|Major Highway|major highway|Major highway = Major Highway | |||
|mH|Minor Highway|minor Highway|Minor Highway = Minor Highway | |||
|Ramp|ramp = Ramp | |||
|PS|ps|Primary Street|primary street|Primary street = Primary Street | |||
|Street|street|St|st = Street | |||
|{{{1|}}}<!--default--> | |||
}}<!-- end switch --> | |||
|<!-- add style and custom text -->{{color|—— |black}}{{#if:{{{2|}}}<!-- if custom is supplied use that --> | |||
|{{{2|}}} | |||
|<!-- 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 | |||
|MH|Major Highway|major highway|Major highway = Major Highway | |||
|mH|Minor Highway|minor Highway|Minor Highway = Minor Highway | |||
|Ramp|ramp = Ramp | |||
|PS|ps|Primary Street|primary street|Primary street = Primary Street | |||
|Street|street|St|st = Street | |||
|{{{1|}}}<!--default--> | |||
}}<!-- end switch --> | |||
}}<!-- end if check for custom text in {{{2}}} -->{{Color| ——|black}}<!-- finish styled text --> | |||
|<!-- pass through style param if present -->{{#if:{{{style|}}}|style={{{style|}}}}} | |||
}}<!-- end road type template --> | |||
|<!-- no road type defined -->{{red|ERROR: Please define a road type as the first parameter, see {{Tl|Roundabout}}}} | |||
}}<!-- end if {{{1}}} check --></includeonly> |
Revisión actual - 18:14 5 jul 2017
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.
Syntax
{{Roundabout|ROAD TYPE|CUSTOM TEXT|Style=<STYLE CODES>}}
Sample Usage
{{Roundabout|Major Highway|Traffic Circle}}
—— Traffic Circle ——
{{Roundabout|Primary Street}}
—— Primary Street ——
{{Roundabout}}
ERROR: Please define a road type as the first parameter, see {{Roundabout}}
The above documentation is transcluded from Plantilla:Roundabout/doc. Please add categories to the /doc subpage. Subpages of this template. |