Template:Colort/Color/doc

Color table row, for use with Colort, which creates the column headings.

Usage

 * common name – may contain markup
 * alternative name or html name
 * sort name – an alternative name or spelling that should be used for sorting, must not contain markup
 * red decimal value – 0–255, percent values are automatically generated
 * green decimal value – 0–255, percent values are automatically generated
 * blue decimal value – 0–255, percent values are automatically generated
 * hex triplet – can be automatically generated
 * hue degrees – HSV/HSB and HSL, can be automatically generated
 * saturation percent – HSV/HSB, can be automatically generated
 * brightness/value percent – HSV/HSB, can be automatically generated
 * saturation percent – HSL, can be automatically generated
 * lightness percent – HSL, can be automatically generated
 * brightness/value percent – HSV/HSB, can be automatically generated
 * saturation percent – HSL, can be automatically generated
 * lightness percent – HSL, can be automatically generated

If not provided, values for HSL, HSV and hex triplet are auto-generated from RGB parameters. That means, parameters name, r, g and b are required, the rest is optional and mostly should only be used if the automatic calculation yields rounding errors or fails for other reasons.

The hash sign  for hex triplets, percent   and degree   symbols must not be entered as the are included automatically.

Examples
See X11 color names, Web colors, or "what links here".

Code
The colort/Color template provides the calculation of missing values, the actual table row design is found in colort/1row (default) or colort/2row for a narrow, non-sortable variant with two rows per color. These two sub-templates should never be used directly elsewhere!