FANDOM


Information icon-grey
This is a documentation subpage for Template:Recolours.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Recolours invokes Module:Recolours using Lua.

This template is used to display the available recolours for cosmetic overrides in Template:Infobox Skin.

Naming colors

The available colour parameters are named colourX and go up to 16; so colour1, colour2, ... colour16. If left blank, the colour will be white (#FFF). Predefined colour names may be used for these parameters. When using HEX colours you must include the hash (#). To limit the number of colours, set the limit parameter to the number of squares desired.

Along with the display of the colours, you have the option to give an alternative name for the colour to be displayed when hovered over. They are named nameX and go up to 16 as well; so name1, name2, ... name16. If left blank, it will default to displaying exactly what is defined in the associated colour# parameter.

Format

The format of the template is meant to closely resemble what players see when recolouring overrides in game. The template displays the 16 colours in 4 rows of 4. The order is left to right, top to bottom. So row 1 would consist of colours 1-4, row 2 of 5-8, and so on.

All of the display is done with CSS. The boxes are all 15 pixels square and have a 2 pixel ridge border. The classes used to style this template are found under the comment block that begins with [[Template:Recolours]] in the site-wide CSS.

Existing templates

The following templates make use of this one for displaying certain recolouring options:

Blank template

{{Recolours
|colour1 = 
|name1 = 
|colour2 = 
|name2 = 
|colour3 = 
|name3 = 
|colour4 = 
|name4 = 
|colour5 = 
|name5 = 
|colour6 = 
|name6 = 
|colour7 = 
|name7 = 
|colour8 = 
|name8 = 
|colour9 = 
|name9 = 
|colour10 = 
|name10 = 
|colour11 = 
|name11 = 
|colour12 = 
|name12 = 
|colour13 = 
|name13 = 
|colour14 = 
|name14 = 
|colour15 = 
|name15 = 
|colour16 = 
|name16 = 
}}
{{Recolours
|limit = 8
|colour1 = 
|name1 = 
|colour2 = 
|name2 = 
|colour3 = 
|name3 = 
|colour4 = 
|name4 = 
|colour5 = 
|name5 = 
|colour6 = 
|name6 = 
|colour7 = 
|name7 = 
|colour8 = 
|name8 = 
Community content is available under CC-BY-SA unless otherwise noted.