Template:Monzo: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Simply call Template: Ket to do the rendering
mNo edit summary
Line 2: Line 2:
This '''monzo''' template eases typing [[monzo]]s: it puts ket notation (<code>&#91;</code> and <code>&#x27E9;</code>) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.  
This '''monzo''' template eases typing [[monzo]]s: it puts ket notation (<code>&#91;</code> and <code>&#x27E9;</code>) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.  


== Usage example ==
== Usage ==
; You type
; You type
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code>
: <code><nowiki>{{monzo| -19 12 }}</nowiki></code>
Line 17: Line 17:


== See also ==
== See also ==
* [[Template: Monzo list]]
* [[Template: Val]]
* [[Template: Val]]
* [[Template: Ket]]
* [[Template: Ket]]

Revision as of 11:18, 25 May 2023

This monzo template eases typing monzos: it puts ket notation ([ and ) around its arguments (it also removes surrounding spaces), and you may optionally include a legend.

Usage

You type
{{monzo| -19 12 }}
{{monzo|legend=1| -19 12 }}
Tip: adding spaces improves readability of the wiki markup.
You get (rendered)
[-19 12
monzo[-19 12

Technical note

This template calls Template: Ket to render the brackets.

See also