Template:Chset-cell1/doc

From HandWiki
< Template:Chset-cell1
Revision as of 14:53, 14 April 2022 by imported>Qwerfjkl (cleanup (via script))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

For entries in character set tables.

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