Template:Routebox entry

From Wikivoyage
Jump to: navigation, search

 {{{1}}} 

[view] [edit] [history] [purge] Template-info.svg Template documentation

This template makes a color box for routebox lines.

Usage[edit]

{{Routebox entry|text|bg color|text color|border|border color|radius|mouseover}}

Parameter Nutshell Description Default
1 Text The Route ID, the text that gets displayed. None, required input.
2 Background colour Either a RGB HEX code (including #) or colour name understood by HTML/CSS is required. Examples of inputs: #FF00FF, blue #BBBBBB (light grey)
3 Text colour Either a RGB HEX code (including #) or colour name understood by HTML/CSS is required. Examples of inputs: #FF00FF, blue #FFFFFF (white)
b Border Accepts text / t to match the colour with the text, custom / c to make the border a custom colour not used in the template yet. Don't use the parameter if you do not want to add a distinctive border. Should this not work, the inputs bg, none and n also set the colour of the border to the same as the background. The width of the border is set to 2 pixels in thickness, which cannot be altered. none (same as background)
bcolor Border colour Like parameters 2 and 3, this requires an RGB HEX code including the # consisting of 6 hexadecimal values (0-F). This parameter requires b to be set to custom / c in order to have effect. Without doing so, you're making the template input longer than necessary. Same colour as 2.
r Radius Accepts cube / none / n, edge / e and circle / c as input. These will add no round-over, a slight round-over and a full round-over to the output respectively. n
mo Mouse-over text If not defined, no mouse-over will show. If something different is defined, then that string will be used. No default.

Examples[edit]

{{Routebox entry|Line}} Line 

{{Routebox entry|Circle line|yellow|black}} Circle line 

{{Routebox entry|A|white|#FE372E|r=c|b=t|mo=Réseau Express Régional Line A}} A 

{{Routebox entry|P|white|#F5D05C|r=e|b=t|mo=Transilien, Paris Est}} P 

See also[edit]