Template:Bra: Difference between revisions
Jump to navigation
Jump to search
Cmloegcmluin (talk | contribs) this notation is used for matrices like comma-bases, e.g. ⟨[4 -4 1 0⟩ [13 -10 0 1⟩]. it's the same ⟨...] as maps (AKA "vals") or covectors, but in these contexts neither the "map" or "covector" template is appropriate. I think this application-generic notation-based template is a good solution. Tag: New redirect |
-redirect. Template: Val should call this instead Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | <includeonly><span class="val"><span class="left-delim">⟨</span>{{trim| {{{1|0}}} }}<span class="right-delim">]</span></span></includeonly><noinclude> | ||
This template puts bra notation (<code>⟨</code> and <code>]</code>) around its arguments (it also removes surrounding spaces). | |||
Note: If you are notating for [[val]]s, use [[Template: Val]] instead. | |||
== Usage example == | |||
; You type | |||
: <code><nowiki>{{val| 31 49 72 87 }}</nowiki></code> | |||
:'''Tip''': Adding spaces improves readability of the wiki markup. | |||
; You get (rendered) | |||
: {{{{PAGENAME}}| 31 49 72 87 }} | |||
== 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>). | |||
== See also == | |||
* [[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 <code>val class</code> | |||
[[Category:Templates]] | |||
</noinclude> |
Revision as of 09:51, 25 May 2023
This template puts bra notation (⟨
and ]
) around its arguments (it also removes surrounding spaces).
Note: If you are notating for vals, use Template: Val instead.
Usage example
- You type
{{val| 31 49 72 87 }}
- Tip: Adding spaces improves readability of the wiki 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: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