Template:Multimonzo: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
m There was another decimal HTML
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="monzo"><span class="left-delim">&#91;{{#switch: {{{nullity|2}}}|2=&#91;|3=&#91;&#91;|4=&#91;&#91;&#91;}}</span>{{trim|{{{1|{{{text|0}}}}}}}}<span class="right-delim">&#10217;{{#switch: {{{nullity|2}}}|2=&#10217;|3=&#10217;&#10217;|4=&#10217;&#10217;&#10217;}}</span></span></includeonly><noinclude>
<includeonly><span class="left-delim">&#91;{{#switch: {{{nullity|2}}}|2=&#91;|3=&#91;&#91;|4=&#91;&#91;&#91;}}</span>{{trim|{{{1|{{{text|0}}}}}}}}<span class="right-delim">&#x27E9;{{#switch: {{{nullity|2}}}|2=&#x27E9;|3=&#x27E9;&#x27E9;|4=&#x27E9;&#x27E9;&#x27E9;}}</span></includeonly><noinclude>
{{documentation}}
{{Documentation}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 15:42, 23 September 2026

Template documentation[view] [edit] [history] [purge]

This template eases using nested kets, such as for multimonzos: it puts the correct brackets ([[ and ⟩⟩) around its arguments (it also removes surrounding space).

You can select bi-, tri-, or quad-monzo by specifying a second argument as 2 (default), 3, or 4.

Usage

You type You get
{{multimonzo| 12 -13 4 10 -4 1 }} [[12 -13 4 10 -4 1⟩⟩
{{multimonzo|nullity=3| -87 72 -49 31 }} [[[-87 72 -49 31⟩⟩⟩

See also