Difference between revisions of "Template:Char/doc"

From blackwiki
Jump to navigation Jump to search
imported>Þjarkur
(As I've removed the serif)
imported>Þjarkur
m (Reverted 1 edit by Þjarkur (talk) to last revision by John Maynard Friedman (TW))
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 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.
+
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.
 +
 
 +
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 11: Line 13:
  
 
==See also==
 
==See also==
* {{tl|code}} – sets the highlighted text in monospaced sans-serif, thus {{code|x}}
+
* [[Template:code]]: sets the highlighted text in monospaced sans-serif, thus {{code|x}}
* {{tl|angbr}} – identifies the character as a [[grapheme]] by setting it between chevrons, thus {{angbr|x}}
+
* [[Template:angbr]]: identifies the character as a [[grapheme]] by setting it between chevrons, thus {{angbr|x}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 23:39, 14 June 2020

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.

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

{{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