Template:Chset-cell3/doc

From blackwiki
< Template:Chset-cell3
Revision as of 07:22, 11 September 2011 by imported>Coroboy (→‎Note: This template is not superseded)
Jump to navigation Jump to search

Note

Template:chset-cell4 is available to additionally display octal code point.

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 alphabetic ASCII characters "A" through "D" (Unicode U+0041 through U+0044, decimal 65 through 68) are coded as rows in a character set table like this:

{|
|{{chset-color-alpha}}|{{chset-cell3|0041|[[A]]|65}}
|{{chset-color-alpha}}|{{chset-cell3|0042|[[B]]|66}}
|{{chset-color-alpha}}|{{chset-cell3|0043|[[C]]|67}}
|{{chset-color-alpha}}|{{chset-cell3|0044|[[D]]|68}}
|}

Which yields:

A
0041
65
B
0042
66
C
0043
67
D
0044
68

Note: This template replaces Template:chset-cell.

See also