Difference between revisions of "Template:Char"

From blackwiki
Jump to navigation Jump to search
imported>Þjarkur
(Removing serif, looks very out of place. Increase padding, the small padding did not make the purpose of the borders obvious at all.)
imported>John Maynard Friedman
(Undid revision 962585470 by Þjarkur (talk) rv ill-considered and undiscussed major change to widely used templlate. See talk page.)
Line 1: Line 1:
<span style="border: 1px solid #dadada; background-color: #fdfdfd; padding: 1px 3px; border-radius: 2px;">{{{1}}}</span><noinclude>{{documentation}}</noinclude>
+
<span style="border: 1px solid #ddd; background-color: #fdfdfd; padding: 1px 1px; font-family: serif;">{{{1}}}</span><noinclude>{{documentation}}</noinclude>

Revision as of 23:26, 14 June 2020

{{{1}}}

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

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 template: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 template:code or template: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

  • Template:code: sets the highlighted text in monospaced sans-serif, thus x
  • Template:angbr: identifies the character as a grapheme by setting it between angle brackets, thus ⟨x⟩