Template:Color

From [N8]
Jump to navigation Jump to search

Template documentation
This documentation is transcluded from Template:Color/doc. [edit] [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)|Background colour|The text to be coloured}} on the page.

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

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[Edit template data]

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