Template:Ket: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span class="monzo"><span class="left-delim">&#91;</span>{{trim| {{{1|0}}} }}<span class="right-delim">&#x27E9;</span></span></includeonly><noinclude>
<includeonly><span class="monzo"><span class="left-delim">{{lbrack}}</span>{{trim| {{{1|0}}} }}<span class="right-delim">&#x27E9;</span></span></includeonly><noinclude>
This '''ket''' template puts ket notation (<code>&#91;</code> and <code>&#x27E9;</code>) around its arguments (it also removes surrounding spaces).
{{documentation}}
 
:'''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>&gt;</code> or <code>&amp;gt;</code>).
 
== See also ==
* [[Template: Monzo]]
* [[Template: Monzo list]]
* [[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]]


[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 18:53, 30 January 2025

Template documentation[view] [edit] [history] [purge]

This ket template puts ket notation ([ and ) around its arguments and removes leading and trailing spaces.

Note: If you are notating for monzos, use Template: Monzo instead. Only use this template if you wish to explicitly use ket notation.

Usage

You type
{{ket| -19 12 }}
Tip: Adding spaces improves readability of the markup.
You get (rendered)
[-19 12

Technical note

Code point U+27E9 is used for the right angle bracket , the ASCII approximation is the greater-than symbol (> or &gt;).

See also