(Created page with "<noinclude>{{doc}}</noinclude><includeonly>{{#if:{{{1|}}}<!-- check if a road type is defined --> |{{<!--use template--> {{#switch:{{{1|}}}<!-- use the defined road type templ...") |
m (Show road type name if no custom text) |
||
Line 10: | Line 10: | ||
|{{{1|}}}<!--default--> | |{{{1|}}}<!--default--> | ||
}}<!-- end switch --> | }}<!-- end switch --> | ||
|<!-- add style and custom text -->—— {{{2|}}} —— | |<!-- add style and custom text -->—— {{#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}}} --> ——<!-- 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> |
Revision as of 14:40, 9 July 2015
Please add categories to the /doc subpage. Subpages of this template. |
Please add categories to the /doc subpage. Subpages of this template. |