Template:Chset-cell3/doc

From HandWiki


Note

This template replaces Template:chset-cell. Template:chset-cell4 is available to additionally display the code point in octal.

Usage

Used with Template:chset-tableformat to indicate a printable character table cell.

  • Parameter 1: hhhh, Hexadecimal Unicode value, 4 digits (e.g., 0041)
  • Parameter 2: X, Displayable character with link to appropriate article (e.g., [[A]]); defaults to "&#xhhhh;" using the value of parameter 1
  • Parameter 3: dd, Decimal character code, 1–3 digits (e.g., 65)

For example, the first four ASCII digit characters "0" through "3" (Unicode U+0030 through U+0033, decimal 48 through 51) are coded as rows in a character set table like this:

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

Which yields:

0
0030
48
1
0031
49
2
0032
50
3
0033
51

Template:Chset-table-header/family-doc