Template:Chset-ctrl1

From HandWiki
Revision as of 15:30, 14 January 2022 by imported>Spitzak (β†’β€Žtop: Don't use mono for unicode number)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)

title="{{{1}}}" style="font-size:75%;padding:1px;"|{{{2}}}

Template documentation[view] [edit] [history] [purge]

Usage

Same as {{chset-cell1}} except the "glyph" text is printed smaller and with a dotted box around it. Generally you should use uppercase. Judicious adding of spaces and thin spaces, or shrinking the font-size, so all the boxes are the same size makes things more attractive.

{|{{chset-table-header1|Example}}
|-
| {{chset-left1|0x}}
| {{chset-ctrl1 | u=0000 | 0
U+0000: NULL | [[Null character|NUL]] }}
| {{chset-ctrl1 | 1
U+0001: START OF HEADING | [[Start of heading|SOH]] }}
| {{chset-ctrl1 | 2
U+0002: START OF TEXT | [[Start of text|STX]] | style=background:#FFD }}
| {{chset-ctrl1 | 3
U+0003: END OF TEXT | [[End of text|ETX]] | style=background:#FFD }}
| {{chset-ctrl1 | 4
U+0007: BELL | [[Bell character|BEL]] }}
| {{chset-ctrl1 | 5
U+0008: BACKSPACE | [[Backspace| BS ]] }}
| {{chset-ctrl1 | 6
U+001B: ESCAPE | {{resize|60%|[[Escape character|ESCAPE]]}} }}
| {{chset-ctrl1 | 7&#10;Two lines | [[Fish|GO<br/>FISH]] | style=line-height:1}}
|-
|}
Example
0 1 2 3 4 5 6 7 8 9 A B C D E F
Template:Chset-left1 NUL
0000
SOH STX ETX BEL  BS  ESCAPE GO
FISH

Bugs: the box should be the link color, or black if there is no link. Currently it is always blue.