Template:CharSwatch

From Wiki of ZZT
Revision as of 22:16, 16 January 2021 by Quantum (talk | contribs) (Create corresponding template, doc for Module:CharSwatch)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CharSwatch is a template for demonstrating an extended ASCII character using the default CP437 font. It takes a single parameter, the character's number. Example:

   In ASCII, capital letter 'A' is {{CharSwatch|65}}

Will be rendered as: In ASCII, capital letter 'A' is #char 65 A (0x41)

Hex is supported as well as decimal:

   {{CharSwatch|0xB2}}

#char 178 (0xB2)