Template:Angle bracket/testcases

From blackwiki
< Template:Angle bracket
Revision as of 20:06, 22 October 2015 by blackwiki>Crissov (Created page with '{|class="wikitable" |- |rowspan=2|Mediawiki math markup<ref>Dependent on user settings: may render as PNG image or text (MathML or MathJax), the latter uses U+27...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Mediawiki math markup[1]
<math>\langle</math>{{{1}}}<math>\rangle</math>
<math>\langle</math>a<math>\rangle</math> 1
<math>\langle\text{{{{1}}}}\rangle</math>
<math>\langle\text{a}\rangle</math> 2
Named entity references (HTML)[2]
{{Unicode|&lang;}}{{{1}}}{{Unicode|&rang;}}
Template:UnicodeaTemplate:Unicode 3a
&lang;{{{1}}}&rang;
〈a〉 3b
U+2329|A “Left/Right-Pointing Angle Bracket”,
equivalent to U+3008|9; but possibly narrower.[3]
{{Unicode|&#x2329;}}{{{1}}}{{Unicode|&#x232A;}}
Template:UnicodeaTemplate:Unicode 4a
&#x2329;{{{1}}}&#x232A;
〈a〉 4b
〈{{{1}}}〉
〈a〉 4c
U+3008|9 “Left/Right Angle Bracket”,
fullwidth CJK
{{Unicode|&#x3008;}}{{{1}}}{{Unicode|&#x3009;}}
Template:UnicodeaTemplate:Unicode 5a
&#x3008;{{{1}}}&#x3009;
〈a〉 5b
〈{{{1}}}〉
〈a〉 5c
U+27E8|9 “Mathematical Left/Right Angle Bracket”
(Math Symbols A block)[4]
{{Unicode|&#x27E8;}}{{{1}}}{{Unicode|&#x27E9;}}
Template:UnicodeaTemplate:Unicode 6a
&#x27E8;{{{1}}}&#x27E9;
⟨a⟩ 6b
⟨{{{1}}}⟩
⟨a⟩ 6c
  1. Dependent on user settings: may render as PNG image or text (MathML or MathJax), the latter uses U+27E8|9.
  2. Realized as U+2329|A according to XHTML 1.0 which are deprecated, realized as U+27E8|9 according to HTML5. See XML Entity Definitions for Characters
  3. Unicode: “These characters are deprecated and are strongly discouraged for mathematical use because of their canonical equivalence to CJK punctuation.”(page 3 of 7) The U+3008|9 angles are defined fullwidth in Chinese script. U+2329|A are not defined “halfwidth” (that is, not half a fixed-width character)
  4. Recommended for technical/mathematical use according to Unicode documentation
Template documentation[view] [edit] [history] [purge]

Use this template to generate a pair of left (open) and right (close) angle brackets (also called chevrons) that will display correctly, even on operating systems and browsers that normally cannot display these characters when they are used in text. The angle brackets will surround whatever you insert as a parameter after the pipe (|) symbol. Examples:

  • {{angle bracket|ŋ}} displays as ⟨ŋ⟩
  • {{angle bracket|foo}} displays as ⟨foo⟩
  • {{angle bracket|ψ{{!}}Ĥ{{!}}ψ}} displays as ⟨ψ|Ĥ|ψ⟩

You can also insert (nest) a text- or character-producing template as the parameter. Examples:

  • {{angle bracket|{{IPA|ŋ}}}} displays as ⟨ŋ
  • {{angle bracket|{{date}}}} displays as ⟨2 January 2026⟩

{{angbr IPA}} is a shorthand for the first example.

Formatting (markup)

Place any HTML or Wiki markup either outside the template or after the pipe (|) symbol as part of the parameter. Examples:

  • '''{{angle bracket|foo}}''' displays as ⟨foo⟩
  • {{angle bracket|<u>foo</u>}} displays as ⟨foo
  • {{angle bracket|''foo''}} displays as ⟨foo

The template does not work properly with an equals sign (=) in the parameter. Start the parameter with 1= to circumvent this problem.

Meaning

Angle brackets (chevrons) have many uses as punctuation marks and symbols. See Angle brackets.

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Angle bracket

Places the text inside an angle bracket. Used to indicate graphemes.

Template parameters

ParameterDescriptionTypeStatus
text1

Text to embrace in angle brackets

Example
ψ|Ĥ|ψ
Linesuggested