Template:ColorKey/doc

Usage
This template handles the  parameter in templates. Template:ColorKey returns a set of background and text colors for the value given, if it is one of the values listed below. It returns the input if the input is not one of the switch options.

Values

 * The default color pair is carnation and black.
 * Any value not listed below will be returned. Valid CSS colors can be used in templates this way (for example #66CCFF, rgb(128,128,255), and #6cf);
 * Basic colors: red# | orange# | yellow# | green# | blue# | purple# | pink# | black1 | default
 * # represents numbers 1-3. For example, red1, red2, and red3 are available as options. (red is interpreted differently and will show a different shade of red; red4 is not an option.)
 * Only black1 is available. black1 provides white text on a black background.

Basic colors
red1 orange1 yellow1 green1 blue1 purple1 pink1 black1 default
 * Basic colors 1:

red2 orange2 yellow2 green2 blue2 purple2 pink2
 * Basic colors 2:

<span style="">red3 <span style="">orange3 <span style="">yellow3 <span style="">green3 <span style="">blue3 <span style="">purple3 <span style="">pink3
 * Basic colors 3:

Code for templates

 * Utilizing color parameter only:


 * Utilizing color and colorkey ( obsolete ; please do not use except for backwards compatibility):