Difference between revisions of "Template:Chset-cell3/doc"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
imported>Coroboy
(include default value for parameter 2)
Line 9: Line 9:
  
 
* Parameter 1: ''hhhh'', Hexadecimal Unicode value, 4 digits (e.g., ''0041'')
 
* 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 2: ''X'', Displayable character with link to appropriate article (e.g., ''<nowiki>[[A]]</nowiki>''); defaults to "&#x''hhhh'';" using the value of parameter 1
 
* Parameter 3: ''dd'', Decimal character code, 1–3 digits (e.g., ''65'')
 
* Parameter 3: ''dd'', Decimal character code, 1–3 digits (e.g., ''65'')
  

Revision as of 12:21, 9 September 2011

Note

This template has been superseded by Template:chset-cell4.

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