Template:Ket/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) Make documentation page |
m Replace a dead link |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{Dochead}} | ||
This template puts ket notation (<code>[</code> and <code>⟩</code>) around its arguments and removes leading and trailing spaces. | |||
{{Note| If you are notating for [[monzo]]s, use [[Template: Monzo]] instead. Only use this template if you wish to explicitly use ket notation. }} | |||
=== Usage === | === Usage === | ||
; You type | ; You type | ||
: <code><nowiki>{{ket| -19 12 }}</nowiki></code> | : <code><nowiki>{{ket| -19 12 }}</nowiki></code> | ||
: | ; You get (rendered) | ||
: {{{{ROOTPAGENAME}}| -19 12 }} | |||
{{Spaces note}} | |||
=== Technical note === | === Technical note === | ||
{{W|Code point}} [https://symbl.cc/en/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 === | === See also === | ||
* [[Template:Monzo]] | * [[Template: Monzo]] | ||
* [[Template:Monzo list]] | * [[Template: Monzo list]] | ||
* [[Template:Bra]] – puts bra notation around its argument | * [[Template: Multimonzo]] | ||
* [[Template:Lbrack]] – left bracket | * [[Template: Rket]] – puts rounded ket notation around its argument | ||
* [[Template:Trim]] | * [[Template: Bra]] – puts bra notation around its argument | ||
* [[MediaWiki:Common.css]] – contains style definition(s) for the <code> | * [[Template: Lbrack]] – left bracket | ||
* [[Template: Trim]] | |||
* [[MediaWiki: Common.css]] – contains style definition(s) for the <code>left-delim</code> and <code>right-delim</code> classes. | |||
Latest revision as of 08:45, 10 June 2026
This 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 }}
- You get (rendered)
- [-19 12⟩
| Tip: | Adding spaces improves readability of the markup. |
Technical note
Code point U+27E9 is used for the right angle bracket ⟩, the ASCII approximation is the greater-than symbol (> or >).
See also
- Template: Monzo
- Template: Monzo list
- Template: Multimonzo
- Template: Rket – puts rounded ket notation around its argument
- Template: Bra – puts bra notation around its argument
- Template: Lbrack – left bracket
- Template: Trim
- MediaWiki: Common.css – contains style definition(s) for the
left-delimandright-delimclasses.