Template:ColorString

This template creates one or more color boxes followed by a text string which may contain also wikilinks.

It is also possible to let it create a field name, when used within  or.

The template has either only one unnamed parameter, a string of possible subparameters separated by slashes, or unnamed parameters separated by pipes; in both cases an unlimited number of (sub)parameters can be specified. are either pairs of colorcode and text, or just the colorcodes. Each valid color code (CSS color names, hex triplet, ) can be used. The text can be also wiki-formatted, e.g. a link. In any case, a pair of control codes may precede the string; they are also slash/pipe-separated, e.g. " ". The first code may be (see ) The second code specifies
 * Subparameters:
 * "-" or missing: default;
 * "+" requesting the generation of a
 * "e" only when the second code is "T": an "e" will display a bordered example of the file
 * a " " or missing for Legend/Commons or Legtab with parameter pairs,
 * a "C" for Legend/Commons but Text "Colors" with parameter pairs,
 * a "D" for ColorBox with (tincture) parameter pairs,
 * a "M" or "-" for Legend-small with parameter pairs,
 * a "T</tt>" for + always with parameter pairs,
 * a "B</tt>" for ColorBox with single parameter values "B" is usable for non-standard tinctures
 * a "L</tt>" for Legend/Commons with single parameter values, ¹)
 * a "S</tt>" for Legend-small with single parameter values.
 * ¹) the "L" possibility exists just for completion – normally a "Legend" without an explaining second value will not be useful.

When parameter lists of pairs ("", " </tt>", "C</tt>", "D</tt>", "-</tt>", "M</tt>", "T</tt>") should contain an URL address in the second parameter, that is only possible with a parameter list separated by pipes "|" (otherwise the slashes in the URL address would disturb a slash-separated parameter list). Whenever possible, the boxes are ped.

In a with parameter pairs ("", " </tt>", "C</tt>") the second parameter, the descriptional text, can be ("", " </tt>", "=</tt>"); then the first parameter is used.

Examples
See there an example with many colors. See there examples for  parametrizing.