テンプレート:Monzo list

提供: Xenharmonic Wiki
2025年11月16日 (日) 04:14時点におけるDummy index (トーク | 投稿記録)による版 (ページの作成:「<includeonly>{{#if: {{{legend|}}}|Monzo list: }}<span class="left-delim">[</span>{{ket| {{{1|0}}} }}{{#if: {{{2|}}}|, {{ket| {{{2|}}} }} }}{{#if: {{{3|}}}|, {{ket| {{{3|}}} }} }}{{#if: {{{4|}}}|, {{ket| {{{4|}}} }} }}<span class="right-delim">]</span></includeonly><noinclude> {{documentation}} Category:Formatting templates </noinclude>」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

説明


このドキュメントは /doc から参照読み込みされたものです。

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