Template:Angle bracket/testcases
| 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|⟨}}{{{1}}}{{Unicode|⟩}} |
Template:UnicodeaTemplate:Unicode | 3a |
⟨{{{1}}}⟩ |
〈a〉 | 3b | |
| U+2329|A “Left/Right-Pointing Angle Bracket”, equivalent to U+3008|9; but possibly narrower.[3] |
{{Unicode|〈}}{{{1}}}{{Unicode|〉}} |
Template:UnicodeaTemplate:Unicode | 4a |
〈{{{1}}}〉 |
〈a〉 | 4b | |
〈{{{1}}}〉 |
〈a〉 | 4c | |
| U+3008|9 “Left/Right Angle Bracket”, fullwidth CJK |
{{Unicode|〈}}{{{1}}}{{Unicode|〉}} |
Template:UnicodeaTemplate:Unicode | 5a |
〈{{{1}}}〉 |
〈a〉 | 5b | |
〈{{{1}}}〉 |
〈a〉 | 5c | |
| U+27E8|9 “Mathematical Left/Right Angle Bracket” (Math Symbols A block)[4] |
{{Unicode|⟨}}{{{1}}}{{Unicode|⟩}} |
Template:UnicodeaTemplate:Unicode | 6a |
⟨{{{1}}}⟩ |
⟨a⟩ | 6b | |
⟨{{{1}}}⟩ |
⟨a⟩ | 6c |
- ↑ Dependent on user settings: may render as PNG image or text (MathML or MathJax), the latter uses U+27E8|9.
- ↑ 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
- ↑ 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)
- ↑ Recommended for technical/mathematical use according to Unicode documentation
| This template is used on approximately 2,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
- {{abs}}
- {{Circumfix}}: linguistic affix set off with reversed angle brackets
- {{Bracket}}: square brackets
- {{Braket}}, {{Bra-ket}}, {{Bra}}, {{Ket}}: Dirac notation
- {{Langle}}, {{Rangle}}: single brackets
- {{norm}}
- {{pars}}
TemplateData
TemplateData for Angle bracket
Places the text inside an angle bracket. Used to indicate graphemes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | 1 | Text to embrace in angle brackets
| Line | suggested |
| The above documentation is transcluded from Template:Angle bracket/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |