Difference between revisions of "Template:Char/doc"

From blackwiki
Jump to navigation Jump to search
imported>John Maynard Friedman
(Embedded links deprecated)
imported>Þjarkur
(As I've removed the serif)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
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.
+
For showing examples of typographic characters, 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.
 
 
Current version uses a serif typeface but no other modifications. In particular I found that enlarging the font makes the line spacing ugly so that probably should not be done.
 
 
== Usage ==
 
== Usage ==
 
<nowiki>{{char|x}}</nowiki> → {{char|x}}
 
<nowiki>{{char|x}}</nowiki> → {{char|x}}
Line 13: Line 11:
  
 
==See also==
 
==See also==
* [[Template:code]]: sets the highlighted text in monospaced sans-serif, thus {{code|x}}
+
* {{tl|code}} – sets the highlighted text in monospaced sans-serif, thus {{code|x}}
* [[Template:angbr]]: identifies the character as a [[grapheme]] by setting it between chevrons, thus {{angbr|x}}
+
* {{tl|angbr}} – identifies the character as a [[grapheme]] by setting it between chevrons, thus {{angbr|x}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 22:47, 14 June 2020

For showing examples of typographic characters, 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.

Usage

{{char|x}} → x

Embedded links deprecated

The purpose of this template is to show the character as simply and as cleanly as possible. Consequently, although it is technically possible to write

{{char|[[x]]}} → x,

this practice is deprecated because hyperlinks are generally indicated by adding an underscore to the glyph, which will mean that the image shown is no longer accurate.

See also

  • {{code}} – sets the highlighted text in monospaced sans-serif, thus x
  • {{angbr}} – identifies the character as a grapheme by setting it between chevrons, thus ⟨x⟩