Template:RouteBox

From Wikipedia, the free encyclopedia
  (Redirected from Template:Rbox)
Jump to: navigation, search

 {{{1}}} 

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

This template is similar to {{Color box}}, but provides for both wikilinks and text color and omits the contrasting border.

Usage[edit]

{{RouteBox|text|link|box color|text color|bold=}}

  • RouteBox
can be abbreviated to {{rbox|…}}
  • text
text (bold) to be displayed in the box
  • link
any valid wikilink; [[ and ]] are not required; can be omitted if no link is wanted
  • box color
background color of the box; default is black; can be omitted if text color is not specified
  • text color 
optional; default is white
  • bold=
optional; default is yes

Examples[edit]

{{RouteBox|Line|Line}} Line 

{{rbox|Circle line|Circle line (London Underground)|#{{LUL color|Circle}}|#{{LUL color|Piccadilly}}}} Circle line 

{{RouteBox|Text||bold=no}} Text 

Variants[edit]

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for RouteBox

Adds a colored box with no border.

Template parameters

This template has custom formatting.

Parameter Description Type Status
text 1

text (bold by default) to be displayed in the box

Default
empty
Example
Circle line
Auto value
empty
String suggested
link 2

The name of the page to link towards; can be omitted if no link is wanted

Default
empty
Example
Circle line (London Underground)
Auto value
empty
Page optional
box color 3

background color of the box; can be omitted if text color is not specified

Default
black
Example
yellow
Auto value
empty
String suggested
text color 4

color of the text

Default
white
Example
blue
Auto value
empty
String optional
Bold bold

bolds the text; enabled by default

Default
yes
Example
no
Auto value
empty
String optional