|
|
(6 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| <includeonly><span class="monzo"><span class="left-delim">[</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right-delim">⟩</span></span></includeonly><noinclude> | | <includeonly>{{#if: {{{legend|}}}|[[monzo]]: }}{{ket|{{{1|0}}}}}</includeonly><noinclude> |
| This template eases using [[monzo notation]]: it puts the right brackets (<code>[</code> and <code>⟩</code>) around its arguments (it also removes surrounding space). | | This '''monzo''' template eases typing [[monzo]]s by putting ket notation (<code>[</code> and <code>⟩</code>) around its arguments and removing surrounding spaces. You may optionally include a legend. |
|
| |
|
| == Usage example ==
| | {{documentation}} |
|
| |
|
| ; You type
| | [[Category:Formatting templates]] |
| : <code><nowiki>{{monzo| -19 12 }}</nowiki></code> or the equivalent | |
| : <code><nowiki>{{monzo|text= -19 12 }}</nowiki></code>
| |
| (the option of adding spaces supports readability of the wiki markup)
| |
|
| |
|
| ; You get (rendered)
| | <!-- Interwiki --> |
| : <span class="monzo"><span class="left-delim">[</span>{{trim| -19 12 }}<span class="right-delim">⟩</span></span>
| |
| | |
| == Technical Note ==
| |
| | |
| [[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:Val]]
| |
| * [[Template:Lbrack]]
| |
| * [[Template:Trim]]
| |
| | |
| [[Category:Templates]]
| |
| | |
| <!-- interwiki --> | |
| [[de:Vorlage:Monzo]] | | [[de:Vorlage:Monzo]] |
| [[es:Plantilla:Monzo]] | | [[es:Plantilla:Monzo]] |
| </noinclude> | | </noinclude> |