Template:Button/doc

From Truck Simulator Wiki
Jump to navigation Jump to search

This is the Infobox for buttons.

Usage

Please use this code.

{{Button
|image        = 
|articlename  = 
|name         = 
|bgcolor      = 
|boxcolor     = 
|fontcolor    = 
}}

Example

Example:

{{Button
|image       = Ticket6.jpg
|articlename = Speed Camera
|name        = Camera
|bgcolor     = #BACDD8
|boxcolor    = #BACDD8
|fontcolor   = #FFF
}}

Result:


Syntax Guide

A quick reference on how to use each field:

image
The image used for the button. Only time the file name, not the extensions e.g. thumb, file: etc.
articlename
The page name e.g. Events or :Category:Events if linking to a category
name
Alternative to page name if, for example, the page name is a category.
bgcolor
The default is brown (#BACDD8). Use either a color name OR a hex color with the "#" symbol.
boxcolor
Default is light blue.
fontcolor
Default is white. This changes the text color.