Template:Chset-color-digit-var/doc


Usage edit

Used with Template:chset-tableformat data rows to indicate a color for numeric digit character code cells, this alternative is a slight shading variant of Template:chset-color-digit in order to indicate some other information in addition to the type, for example, a derivation from a base codepage or a codepoint, for which multiple definitions exist in some sources.

For as long as there is no need to differentiate one or a few of the cells in a group from the other cells in the same group, use Template:chset-color-digit instead.

For example:

|{{chset-color-digit-var}}|{{chset-cell3|0030|[[0 (number)|0]]|48}}
|{{chset-color-digit-var}}|{{chset-cell3|0031|[[1 (number)|1]]|49}}
|{{chset-color-digit-var}}|{{chset-cell3|0032|[[2 (number)|2]]|50}}
|{{chset-color-digit-var}}|{{chset-cell3|0033|[[3 (number)|3]]|51}}

Chset family of templates edit

See ISO 8859-1, Windows-1252, and EBCDIC for examples of usage.

Header and footer rows edit

Character row header edit

Character cell colors edit

For generating colours for cells by Unicode category, this script may be helpful.

Certain colours are in the process of being phased out:

  • Template:chset-color-ext-punct — Extended punctuation character cell color. Intended to represent non-ASCII punctuation, this is not a category used by Unicode (and there are no corresponding ext-digit, ext-graph etc). Currently renders the same as punct.

In addition to these, boxed and slightly shaded variants of these exist in order to indicate some kind of additional information (depending on the article) like, for example, a derivation from a base codepage, a variance of definition of the corresponding codepage in different sources (to be explained in the article) or in different revisions of a code page:

and

Please note that the boxed variants must not be used, if a cell, which is not to be marked, is surrounded by four cells, which need to be marked, as this would make the central cell appear marked as well. The shaded variants do not exhibit this problem.

For as long as there is no need to differentiate one or a few of the cells in a group from the other cells in the same group, refer to the normal (that is, the non-"box"- or "var"-type) templates further above.

Character cell contents edit