Difference between revisions of "Template:Chset-cell4"

From blackwiki
Jump to navigation Jump to search
imported>MerlIwBot
m (robot Removing: bg:Шаблон:Chset-cell4)
imported>Coroboy
(show result of usage)
Line 11: Line 11:
 
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:
  
 +
<nowiki>{|</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0041|[[A]]|65|101}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0041|[[A]]|65|101}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0042|[[B]]|66|102}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0042|[[B]]|66|102}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0043|[[C]]|67|103}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0043|[[C]]|67|103}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0044|[[D]]|68|104}}</nowiki>
 
  <nowiki>|{{chset-color-alpha}}|{{chset-cell4|0044|[[D]]|68|104}}</nowiki>
 +
<nowiki>|}</nowiki>
 +
 +
Which yields:
 +
{|
 +
|{{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]].''
 
''Note: This template replaces [[:Template:chset-cell]] and [[:Template:chset-cell3]].''

Revision as of 12:24, 15 June 2011

&#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}}
|}

Which yields:

A
0041
65
101
B
0042
66
102
C
0043
67
103
D
0044
68
104

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

See also

ko:틀:문자표-칸4