Template:Monzo: Difference between revisions
removed special knowledge for better usage, added example for alternative syntax |
Polishing done. |
||
Line 1: | Line 1: | ||
<includeonly><span class="monzo"><span class="left">[</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right">⟩</span></span></includeonly><noinclude> | <includeonly><span class="monzo"><span class="left">[</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right">⟩</span></span></includeonly><noinclude> | ||
This template eases using [[monzo notation]] | This template eases using [[monzo notation]]: it puts the right brackets (<code>[</code> and <code>⟩</code>) around its arguments (it also removes surrounding space). | ||
== Usage example == | == Usage example == | ||
Line 7: | Line 7: | ||
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code> or the equivalent | : <code><nowiki>{{monzo| -19 12 }}</nowiki></code> or the equivalent | ||
: <code><nowiki>{{monzo|text= -19 12 }}</nowiki></code> | : <code><nowiki>{{monzo|text= -19 12 }}</nowiki></code> | ||
(the option of adding spaces supports readability of the wiki markup) | |||
; You get (rendered) | ; You get (rendered) | ||
: <span class="monzo"><span class="left">[</span>{{trim| -19 12 }}<span class="right">⟩</span></span> | : <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 == | == See also == | ||
* [[Template:Val]] | * [[Template:Val]] | ||
* [[Template:Lbrack]] | |||
* [[Template:Trim]] | |||
[[Category:Templates]] | [[Category:Templates]] |