Template:Monzo list/doc

From Xenharmonic Wiki
Revision as of 19:07, 30 January 2025 by ArrowHead294 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This monzo list template eases typing monzo lists: it puts ket notation ( and ]) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Monzo lists are supported up to rank-4.

Usage

You type
{{monzo list| 1 0 0 0 }}
{{monzo list| 1 0 0 | 0 0 1 }}
{{monzo list|legend=1| 1 0 0 0 | 0 1 1/4 0 | -3 0 5/2 0 }}
Tip: adding spaces improves readability of the wiki markup.
You get (rendered)
[[1 0 0 0]
[[1 0 0, [0 0 1]
Monzo list[[1 0 0 0, [0 1 1/4 0, [-3 0 5/2 0]

Technical note

This template calls Template:Ket to render the brackets.

See also