Difference between revisions of "Template:Chset-cell4"

From blackwiki
Jump to navigation Jump to search
imported>Loadmaster
m (link fix)
imported>Loadmaster
m (Fix examples)
Line 7: Line 7:
 
* Parameter 2: ''X'', Displayable character (e.g., ''A''), with link to appropriate article
 
* Parameter 2: ''X'', Displayable character (e.g., ''A''), with link to appropriate article
 
* Parameter 3: ''dd'', Decimal character code, 1–3 digits (e.g., ''65'')
 
* Parameter 3: ''dd'', Decimal character code, 1–3 digits (e.g., ''65'')
* Parameter 4: ''ooo'', Octal character code, 1–3 digits (e.g., ''101'')
+
* Parameter 4: ''ooo'', Octal character code, 3 digits (e.g., ''101'')
  
 
For example, the first four alphabetic [[ASCII]] characters "A" through "D" ([[Unicode]] U+0041 through U+0043, decimal 65 through 68, octal 101 through 104) are coded as rows in a character set table like this:
 
For example, the first four alphabetic [[ASCII]] characters "A" through "D" ([[Unicode]] U+0041 through U+0043, decimal 65 through 68, octal 101 through 104) are coded as rows in a character set table like this:

Revision as of 18:15, 4 February 2010

&#x{{{1}}};
{{{1}}}
{{{3}}}
{{{4}}}


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 (e.g., A), with link to appropriate article
  • Parameter 3: dd, Decimal character code, 1–3 digits (e.g., 65)
  • Parameter 4: ooo, Octal character code, 3 digits (e.g., 101)

For example, the first four alphabetic ASCII characters "A" through "D" (Unicode U+0041 through U+0043, decimal 65 through 68, octal 101 through 104) are coded as rows in a character set table like this:

|{{chset-color-alpha}}|{{chset-cell4|0041|[[A]]|65|101}}
|{{chset-color-alpha}}|{{chset-cell4|0042|[[B]]|66|102}}
|{{chset-color-alpha}}|{{chset-cell4|0043|[[C]]|67|103}}
|{{chset-color-alpha}}|{{chset-cell4|0044|[[D]]|68|104}}

Note: This template replaces Template:chset-cell and Template:chset-cell3.

See also

bg:Шаблон:Chset-cell4