(Created page with "{{doc subpage}} This template is an alternative to the Road template -- it has two additional optional parameters: color and background-color. Template is used to create a ...") |
Kentsmith9 (talk | contribs) m (Text replacement - "Category:Road Type Templates" to "Category:Road Type templates") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
Basic function: | Basic function: | ||
<pre>{{ | <pre>{{Road2|your desired text}}</pre> | ||
With optional parameters: | With optional parameters: | ||
<pre>{{ | <pre>{{Road2 | ||
| style = <your additional css style codes> | | style = <your additional css style codes> | ||
| color = <your choice of text color -- overrides style> | | color = <your choice of text color -- overrides style> | ||
Line 29: | Line 29: | ||
== Examples == | == Examples == | ||
{{ | {{Road2|example text}} | ||
{{ | {{Road2|style = color: white;background-color: #387FB8;|custom style}} | ||
background-color: #387FB8;|custom style}} | |||
Use <code><nowiki>{{Road2 |text}}</nowiki></code> to create {{Road2 |text}} in line. | Use <code><nowiki>{{Road2 |text}}</nowiki></code> to create {{Road2 |text}} in line. | ||
Line 38: | Line 37: | ||
Use <code><nowiki>{{Road2 | color=white|background=#387FB8 | custom style }}</nowiki></code> to add your own {{Road2 | color=white|background=#387FB8 | custom style }}. | Use <code><nowiki>{{Road2 | color=white|background=#387FB8 | custom style }}</nowiki></code> to add your own {{Road2 | color=white|background=#387FB8 | custom style }}. | ||
<includeonly>[[Category:Road Type | <includeonly>[[Category:Road Type templates]]</includeonly> |
Latest revision as of 20:50, 15 August 2022
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template is an alternative to the Road template -- it has two additional optional parameters: color and background-color.
Template is used to create a small piece of road with some text in it. These pieces can be placed in-line with the text or in tables, ...
This is a piece of text with a road label in line with the text. This is also the basefunction of other similar functions that can be found on the following page.
Usage
Basic function:
{{Road2|your desired text}}
With optional parameters:
{{Road2 | style = <your additional css style codes> | color = <your choice of text color -- overrides style> | background = <your choice of background color -- overrides style> | <your desired text> }}
Style
The default style is the following:
color: black; background-color: #E6E6E6; border:1px solid #D8D8D8; padding-left: 10px; padding-right: 10px; border-radius: 100px; white-space: nowrap;
Examples
example text
custom style
Use {{Road2 |text}}
to create text in line.
Use {{Road2 | color=white|background=#387FB8 | custom style }}
to add your own custom style .