Template:Colour

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search

Template documentation
This documentation is transcluded from Template:Colour/doc. [edit] [history] [purge]

This is used to change the colour of the text. Place {{Colour|#(colour code, ex. #000000) or (colour name, ex. red)|The text to be coloured}} on the page for coloured text.

If you want to change the background colour as well, please place {{Colour|#(colour code, ex. #000000) or (colour name, ex. red)|The text to be coloured|Background colour}} on the page.

To change only the background colour as well, place {{Colour||The text to be coloured|Background colour}} on the page.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

This template is used to change the colour of either text, background or both.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text colour1

The colour for the text: either a name or a hex value

Example
red
Stringoptional
Text2

The text to be recoloured

Example
Some coloured text
Stringrequired
Background colour3

The background colour for the text: either a name or a hex value

Example
green
Stringoptional