Template:Roundabout/doc View history

m (Fixed template issue)
m (→‎Sample Usage: formatting)
Line 14: Line 14:


=== 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 />
----
----
{{Tlx|Roundabout|Primary Street}}


This code:
:{{Tlx|Roundabout|Primary Street}}


{{Roundabout|Primary Street}}
 
will produce:
:{{Roundabout|Primary Street}}
<br />
----
----
{{Tlx|Roundabout}}
 
This code is missing a required parameter:
:{{Tlx|Roundabout}}




{{Roundabout}}
and will produce this error message:
:{{Roundabout}}
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->

Revision as of 22:13, 5 June 2017

This is a documentation subpage for Template:Roundabout.
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.

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


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

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


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


Use {{Roundabout/doc|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/doc|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/doc|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/doc}} to create

This is a documentation subpage for Template:Roundabout.
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.

Template loop detected: User:PesachZ/Expand

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

This code:

{{Roundabout|Major Highway|Traffic Circle}}


will produce:

Template loop detected: Template:Roundabout



This code:

{{Roundabout|Primary Street}}


will produce:

Template loop detected: Template:Roundabout



This code is missing a required parameter:

{{Roundabout}}


and will produce this error message:

Template loop detected: Template:Roundabout


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

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 —— 

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

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}}