Template:CharSwatch: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Create corresponding template, doc for Module:CharSwatch)
 
(No difference)

Latest revision as of 22:16, 16 January 2021

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)