To edit the Wiki, please login with the same username and password as WME and the forum. Visit the forum for editing guidelines and discussions.

Difference between revisions of "Template:Road/doc"

From waze
Jump to: navigation, search
m (Examples)
m (Examples)
Line 25: Line 25:
{{InlineTemplateExample|Road||example text}}
{{InlineTemplateExample|Road||example text}}
{{ite|Road|style|color: white;
{{ite|Road|style = color: white;
background-color: #387FB8;||custom style}}
background-color: #387FB8;|custom style}}
Use <code><nowiki>{{Road |text}}</nowiki></code> to create {{Road |text}} in line.
Use <code><nowiki>{{Road |text}}</nowiki></code> to create {{Road |text}} in line.

Revision as of 23:06, 23 November 2013

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

Template is used to creates 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.


Basic function:

{{Road|your piece of text}}

With optional parameters:

  | style = <your additional css style codes>
  | <your piece of text>


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;


Template:InlineTemplateExample Template:Ite

Use {{Road |text}} to create  text  in line.

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