Template:Ket/doc: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
Clarify when this should be used
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}
This '''ket''' 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>
 
: {{spaces note}}
: '''Note:''' 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+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>).
[[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 ===
=== See also ===
* [[Template:Monzo]]
* [[Template: Monzo]]
* [[Template:Monzo list]]
* [[Template: Monzo list]]
* [[Template:Bra]] – puts bra notation around its argument
* [[Template: Bra]] – puts bra notation around its argument
* [[Template:Lbrack]] – left bracket
* [[Template: Lbrack]] – left bracket
* [[Template:Trim]]
* [[Template: Trim]]
* [[MediaWiki:Common.css]] – contains style definition(s) for the <code>monzo class</code>
* [[MediaWiki: Common.css]] – contains style definition(s) for the <code>monzo class</code>