Permanently protected template

Template:Char

From Vigyanwiki
Revision as of 21:38, 7 December 2022 by Admin (talk | contribs) (1 revision imported)

{{{1}}}

Template documentation

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.

Usage

{{char|x}}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

  • {{code}} → x: sets the highlighted text in monospaced sans-serif <code> format (inline)
  • {{angbr}} → ⟨x⟩: 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) ⇒
    x