Template:Bra/doc: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
Clarify when this should be used
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{dochead}}
{{Dochead}}
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.
 
=== 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}}
:'''Tip:''' Adding spaces improves readability of the wiki markup.


; You get (rendered)
; You get (rendered)
Line 10: 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>&lt;</code> or <code>&amp;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>&lt;</code> or <code>&amp;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>