Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a245189e3fab6bf7

Jump to content

Template:Char/doc

From Wikipedia, the free encyclopedia

The purpose of this template is to show examples of typographic symbols, using a box designed to look a bit like a metal sort. This is done for consistent style and to avoid confusion between the glyph and the markup, to make it clear which marks are actually part of the symbol and its actual width. It replaces a variety of notations  parentheses, quotes, angle-brackets, {{code}}, italics etc.  that were being used inconsistently in many articles.

This template should be used when it is necessary to clearly show what part of a glyph is surrounding whitespace, for tiny graphemes, or for when angle brackets are confusing (such as when the character is itself a bracket). Where no such risk arises, the angle bracket notation ({{angbr}}) is generally preferred.

Usage

[edit]

{{char|x}}x

By design, this template does not change the font from that used by the adjacent text, though it removes underscores if the contents are linked. It is recommended that any desired font markup be put inside the template (in case a future version uses characters instead of a box). For example,the form of some symbols (such as quote marks) are more evident in serif form than in sans-serif:

Templates may be stacked, for example {{char|{{big|{{red|{{serif|}}}}}}}} produces

Markup can also be inside the template: {{char|'''B'''}} produces B

See also

[edit]
  • {{code}} x: sets the highlighted text in monospaced sans-serif <code> format (inline)
  • {{angle bracket}} x: identifies the character as a grapheme by setting it between angle brackets (inline). [Short form is {{angbr}}.]
  • {{symb}}: shows a symbol in a very large sans-serif font, in a right-aligned box with light blue background (boxed) ⇒⇒⇒
    x
  • {{key}} x: shows a symbol in a simulated 3D surround, to suggest a keyboard element.