Template:Chset-ctrl4
Revision as of 12:29, 13 April 2011 by imported>MerlIwBot (robot Removing: bg:Шаблон:Chset-ctrl4)
{{{2}}}
{{{1}}}
{{{3}}}
{{{4}}}
Usage
Used with Template:chset-tableformat to indicate a table cell for a control character or non-printing punctuation character.
- Parameter 1: hhhh, Hexadecimal Unicode value, 4 digits (e.g., 0020)
- Parameter 2: X, Control character name (e.g., SP), with link to appropriate article
- Parameter 3: dd, Decimal character code, 1–3 digits (e.g., 32)
- Parameter 4: ooo, Octal character code, 3 digits (e.g., 040)
For example, the first four ASCII control characters (Unicode U+0000 thru U+0003, decimal 0 thru 3, octal 000 thru 003) are coded as rows in a character set table like this:
{{chset-color-ctrl}}|{{chset-ctrl4|0000|[[Null character|NUL]] |0|000}}
{{chset-color-ctrl}}|{{chset-ctrl4|0001|[[Start of heading|SOH]]|1|001}}
{{chset-color-ctrl}}|{{chset-ctrl4|0002|[[Start of text|STX]] |2|002}}
{{chset-color-ctrl}}|{{chset-ctrl4|0003|[[End of text|ETX]] |3|003}}
Another example illustrates the coding for a few of the ISO/IEC non-printing punctuation characters:
{{chset-color-punct}}|{{chset-ctrl4|0020|[[Space (character) |SP]] | 32|040}}
{{chset-color-punct}}|{{chset-ctrl4|00A0|[[Non-breaking space|NBSP]]|160|240}}
{{chset-color-punct}}|{{chset-ctrl4|00AD|[[Soft hyphen |SHY]] |173|255}}
Note: This template replaces Template:chset-ctrl and Template:chset-ctrl3.