Template:Ket: Difference between revisions
Cmloegcmluin (talk | contribs) this notation is used for matrices like temperament mappings, e.g. [⟨1 0 -4 -13] ⟨0 1 4 10]⟩. it's the same [...⟩ as vectors such as prime count vectors (AKA "monzos"), but in these contexts neither the "monzo" nor the "vector" template name is appropriate. I think this application-generic notation-based template is a good solution. Tag: New redirect |
-redirect. Template: Monzo should call this instead Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | <includeonly><span class="monzo"><span class="left-delim">[</span>{{trim| {{{1|0}}} }}<span class="right-delim">⟩</span></span></includeonly><noinclude> | ||
This '''ket''' template puts ket notation (<code>[</code> and <code>⟩</code>) around its arguments (it also removes surrounding spaces). | |||
:'''Note''': If you are notating for [[monzo]]s, use [[Template: Monzo]] instead. | |||
== Usage == | |||
; You type | |||
: <code><nowiki>{{ket| -19 12 }}</nowiki></code> | |||
: '''Tip''': Adding spaces improves readability of the wiki markup. | |||
; You get (rendered) | |||
: {{{{PAGENAME}}| -19 12 }} | |||
== Technical note == | |||
[[Wikipedia: Code point|Code point]] [https://www.compart.com/unicode/U+27E9 U+27E9] is used for the right angle bracket <code>⟩</code>, the ASCII approximation is the greater-than symbol (<code>></code> or <code>&gt;</code>). | |||
== See also == | |||
* [[Template: Bra]] – puts bra notation around its argument | |||
* [[Template: Lbrack]] – left bracket | |||
* [[Template: Trim]] | |||
* [[MediaWiki: Common.css]] – contains style definition(s) for the <code>monzo class</code> | |||
[[Category:Templates]] | |||
</noinclude> |