Jump to content

Template:Char/doc

From Wikibooks, open books for an open world

For showing examples of typographic symbols, using a box designed to look a bit like a metal typeface. This is to replace many uses of parenthesis, quotes, etc being used to show this, for consistent style and to avoid confusion as to what glyphs are actually part of the symbol.

After much discussion it was decided that it is preferable to use nothing around the character, or {{angbr}}. This template should only be used when it is necessary to clearly show what part of a glyph is surrounding whitespace, for very tiny glyphs, for when angle brackets are confusing (such as when the character is itself a bracket). This template is considered preferable to using {{code}} or {{key}} or quotation marks or any brackets other than angle brackets.

XML Example

x

This purposely does not change the font, though it removes underscores if the contents are linked. It is recommended that any desired font markup be put inside the template so that if it changed to print surrounding characters instead of a box the markup will not apply to those surrounding characters.

See also

[edit source]
  • {{code}} →
    XML Example
    : sets the highlighted text in monospaced sans-serif
    XML Example
    format (inline)
  • {{angbr}} → Template:Angbr: identifies the character as a grapheme by setting it between angle brackets (inline)
  • {{symb}}: shows a symbol in a very large sans-serif font, in a right-aligned box with light blue background (boxed) ⇒ Template:Symb