Template:UK colour template doc/doc

This template lists as a wikitable row a template name, an argument (if needed), a color sample, its hex triplet, the relevant article, and optional additional text.

Usage
The template itself is contained between table start and end markup:

is used for both the page link and the colour template parameter. If no optional parameters are specified, then  is used ‘as is’ for the page link, and the last word of   is removed and the result is used as the colour template parameter.

can be omitted if the color template has only one value, or it is desired to show the default color.

There are four optional named parameters:
 * used when the colour template parameter is not a short version of the linked page.
 * used when the colour template parameter is not a short version of the linked page.


 * used when there is no appropriate colour template.
 * used when there is no appropriate colour template.


 * used when there is no colour template or the colour template parameter is omitted. will suppress a link.
 * used when there is no colour template or the colour template parameter is omitted. will suppress a link.


 * optional additional text.
 * optional additional text.

Examples
Code:  (colour template and parameter)

Result:

Code:  (parameter is not short form of page link)

Result:

Code:  (no colour template)

Result:

Note that omitting both parameters 1 and 2 and the optional page link will produce an error:

Code:  (no colour template or page link)

Result:

… unless  is included:

Code:  (no colour template or page link)

Result: