Template:Chset-cell1/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

For entries in character set tables.

{|{{chset-table-header1|Example}}
|-
| {{chset-left1|4x}}
| {{chset-cell1 | u=0040 | 64
U+0040: COMMERCIAL AT | @ }}
| {{chset-cell1 | u=0041 | 65
U+0041: LATIN CAPITAL LETTER A | [[A]] }}
| {{chset-cell1 | u=0042 | 66
U+0042: LATIN CAPITAL LETTER B | [[B]] | style=background:#FEE }}
| {{chset-cell1 | 67
U+0043: LATIN CAPITAL LETTER C | See | style=font-size:70% }}
| {{chset-cell1 | u=0044 | 68
U+0044: LATIN CAPITAL LETTER D | [[D]]|fn={{efn|this is a footnote}}}}
| {{chset-cell1 | u=0301 | 69
U+0301: COMBINING ACUTE ACCENT | [[́|◌́]] }}
|-
|}
{{notelist}}
Example
0 1 2 3 4 5 6 7 8 9 A B C D E F
4x @
0040
A
0041
B
0042
See D[a]
0044
◌́
0301
  1. ^ this is a footnote

The first argument is for describing the character, such as the Unicode name and code point(s). Currently it is placed in a tooltip, which apparently cannot handle any markup, although 
 can be used to get newlines.

Second argument is what appears in the cell. Use a link if you want the user to be able to click on a character and go to the Wikipedia entry for it. Combining characters should have a ◌ (U+25CC DOTTED CIRCLE) character, above shows only way I could get a link to work for this.

The optional style= is added to the table cell's style. Don't put quotes around it. Recommended colors, chosen to match the colors used in other tables in Wikipedia (see {{no}} for examples):

  Unused: #DDD
  Lead byte: #DFD
  Variant 1: #FFD
  Variant 2: #FEE
  Variant 3: #EFF

The optional u= is for adding the Unicode code point entry at the bottom. Keep it less than 9 letters so the columns don't get wider, anything larger should use some symbol and put the information into the tooltip text.

The optional fn= is for references and footnotes. The font size is reduced to normal size for this.