Template:Bra/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
Clarify when this should be used |
||
Line 1: | Line 1: | ||
{{ | {{Dochead}} | ||
This template puts bra notation (<code> | This template puts bra notation (<code>⟨</code> and <code>]</code>) around its arguments and removes leading and trailing whitespaces. | ||
'''Note:''' If you are notating for [[val]]s, use [[Template:Val]] instead. | '''Note:''' If you are notating for [[val]]s, use [[Template: Val]] instead. Only use this template if you wish to explicitly use bra notation. | ||
=== Usage === | === Usage === | ||
Line 13: | Line 13: | ||
=== Technical note === | === Technical note === | ||
[[Wikipedia:Code point|Code point]] [https://www.compart.com/unicode/U+27E8 U+27E8] is used for the left angle bracket <code>⟨</code>, the ASCII approximation is less-than symbol (<code><</code> or <code>&lt;</code>). | [[Wikipedia: Code point|Code point]] [https://www.compart.com/unicode/U+27E8 U+27E8] is used for the left angle bracket <code>⟨</code>, the ASCII approximation is less-than symbol (<code><</code> or <code>&lt;</code>). | ||
=== See also === | === See also === | ||
* [[Template:Val]] | * [[Template: Val]] | ||
* [[Template:Mapping]] | * [[Template: Mapping]] | ||
* [[Template:Multival]] | * [[Template: Multival]] | ||
* [[Template:Ket]] – puts ket notation around its argument | * [[Template: Ket]] – puts ket notation around its argument | ||
* [[Template:Rbrack]] – right bracket | * [[Template: Rbrack]] – right bracket | ||
* [[Template:Trim]] | * [[Template: Trim]] | ||
* [[MediaWiki:Common.css]] – contains style definition(s) for the <code>val class</code> | * [[MediaWiki: Common.css]] – contains style definition(s) for the <code>val class</code> |
Latest revision as of 07:48, 14 June 2025
This template puts bra notation (⟨
and ]
) around its arguments and removes leading and trailing whitespaces.
Note: If you are notating for vals, use Template: Val instead. Only use this template if you wish to explicitly use bra notation.
Usage
- You type
{{bra| 31 49 72 87 }}
- Tip: Adding spaces improves readability of the markup.
- You get (rendered)
- ⟨31 49 72 87]
Technical note
Code point U+27E8 is used for the left angle bracket ⟨
, the ASCII approximation is less-than symbol (<
or <
).
See also
- Template: Val
- Template: Mapping
- Template: Multival
- Template: Ket – puts ket notation around its argument
- Template: Rbrack – right bracket
- Template: Trim
- MediaWiki: Common.css – contains style definition(s) for the
val class