Template:Road View history

mNo edit summary
mNo edit summary
Line 2: Line 2:
   color: {{{Color|black}}};
   color: {{{Color|black}}};
   background-color: {{{BgColor|white}}};
   background-color: {{{BgColor|white}}};
  border:1px solid #D8D8D8;
{{#if: {{{Small|}}} | |
{{#if: {{{Small|}}} | |
   padding-left: {{{Padding|10px}}};
   padding-left: {{{Padding|10px}}};
Line 7: Line 8:
   border-radius: 100px;}}
   border-radius: 100px;}}
{{#if: {{{Wrap|}}} | |
{{#if: {{{Wrap|}}} | |
   white-space:nowrap;
   white-space: nowrap;
}}
}}
">{{{1|&lt;text&gt;}}}</span></includeonly><noinclude>{{doc}}</noinclude>
">{{{1|&lt;text&gt;}}}</span></includeonly><noinclude>{{doc}}</noinclude>

Revision as of 00:38, 21 November 2013

Documentation icon Template documentation[view] [edit] [history] [purge]

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:

{{Road|your desired text}}

With optional parameters:

{{Road
  | style = <your additional css style codes>
  | <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 {{Road |text}} to create text in line.

Use {{Road | style = color: white; background-color: #387FB8; | custom style }} to add your own custom style .

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