Template:Monzo: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
Usage example: lowercase version better for usage
Xenwolf (talk | contribs)
removed special knowledge for better usage, added example for alternative syntax
Line 1: Line 1:
<includeonly><span class="monzo"><span class="left">&#91;</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right">&#x27E9;</span></span></includeonly><noinclude>
<includeonly><span class="monzo"><span class="left">&#91;</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right">&#x27E9;</span></span></includeonly><noinclude>
This template eases using [[monzo notation]], because the left angle bracket (<code>&#91;</code>) controls specific wiki functions and the greater sign (<code>&gt;</code>) - used as a surrogate for right angle bracket <code>&#x27E9;</code> ([[Unicode]] code point [https://www.compart.com/de/unicode/U+27E9 U+27E9]) - has a special meaning in HTML and also in the wiki text.
This template eases using [[monzo notation]], it puts its argument into the right brackets (<code>&#91;&#x27E9;</code>, <code>&amp;#91;</code> and <code>[https://www.compart.com/de/unicode/U+27E9 &amp;#x27E9;]</code> and [U+27E9]). It also removes surrounding space from the argument list.


== Usage example ==
== Usage example ==


; You type
; You type
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code>
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code> or the equivalent
: <code><nowiki>{{monzo|text= -19 12 }}</nowiki></code>


; You get (rendered)
; You get (rendered)

Revision as of 11:17, 31 May 2020

This template eases using monzo notation, it puts its argument into the right brackets ([⟩, &#91; and &#x27E9; and [U+27E9]). It also removes surrounding space from the argument list.

Usage example

You type
{{monzo| -19 12 }} or the equivalent
{{monzo|text= -19 12 }}
You get (rendered)
[-19 12

See also