Template:Bra/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Clarify when this should be used
m Replace a dead link
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
This template puts bra notation (<code>⟨</code> and <code>]</code>) around its arguments and removes leading and trailing whitespaces.
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. Only use this template if you wish to explicitly use bra notation.  
{{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 ===
; You type
; You type
: <code><nowiki>{{bra| 31 49 72 87 }}</nowiki></code>
: <code><nowiki>{{bra| 31 49 72 87 }}</nowiki></code>
: {{spaces note}}


; You get (rendered)
; You get (rendered)
: {{{{ROOTPAGENAME}}| 31 49 72 87 }}
: {{{{ROOTPAGENAME}}| 31 49 72 87 }}
{{Spaces note}}


=== 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>&lt;</code> or <code>&amp;lt;</code>).
{{W|Code point}} [https://symbl.cc/en/27E8/ U+27E8] is used for the left angle bracket <code>⟨</code>, the ASCII approximation is less-than symbol (<code>&lt;</code> or <code>&amp;lt;</code>).


=== See also ===
=== See also ===
Line 19: Line 20:
* [[Template: Mapping]]
* [[Template: Mapping]]
* [[Template: Multival]]
* [[Template: Multival]]
* [[Template: Rbra]] – puts rounded bra notation around its argument
* [[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 definitions for the <code>left-delim</code> and <code>right-delim</code> classes.

Latest revision as of 08:44, 10 June 2026

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 }}
You get (rendered)
31 49 72 87]
💡Tip: Adding spaces improves readability of the markup.

Technical note

Code point U+27E8 is used for the left angle bracket , the ASCII approximation is less-than symbol (< or &lt;).

See also