Template:Road2 View history

Revision as of 13:32, 2 December 2014 by Voludu2 (talk | contribs) (Created page with "<includeonly><span style="{{Road/style}}{{{style|}}}"> {{{1|Road}}} {{#if {{{color|}}}|;color: {{{color|}}};|}}</span></includeonly><noinclude>{{doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation icon Template documentation[view] [edit] [history] [purge]

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 {{#if |;color: ;|}}

 custom style {{#if |;color: ;|}}

Use {{Road2 |text}} to create  text {{#if |;color: ;|}} in line.

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

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