Template:Multival: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 3: Line 3:
| 3=⟨⟨
| 3=⟨⟨
| 4=⟨⟨⟨
| 4=⟨⟨⟨
}}</span>{{trim|{{{1|0}}}}}<span class="right-delim">&#93;{{#switch: {{{rank|2}}}
}}&#8202;</span>{{trim|{{{1|0}}}}}<span class="right-delim">&#8202;&#93;{{#switch: {{{rank|2}}}
| #default=&#93;
| #default=&#93;
| 3=&#93;&#93;
| 3=&#93;&#93;
Line 12: Line 12:
You can select bi-, tri-, or quad-val by specifying a second argument as <code>2</code> (default), <code>3</code>, or <code>4</code>.  
You can select bi-, tri-, or quad-val by specifying a second argument as <code>2</code> (default), <code>3</code>, or <code>4</code>.  


{{doc}}
{{documentation}}


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

Revision as of 01:17, 2 October 2024

This template eases using wedgie notation: it puts the right brackets (⟨⟨ and ]]) around its arguments (it also removes surrounding space).

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

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

This template eases using wedgie notation: it puts the right brackets (⟨⟨ and ]]) around its arguments (it also removes surrounding space).

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

Usage

You type You get
{{multival| 1 4 10 4 13 12 }} ⟨⟨ 1 4 10 4 13 12 ]]
{{multival|rank=3| 4 -3 -14 -4 }} ⟨⟨⟨ 4 -3 -14 -4 ]]]

To include a legend, type

  • {{multival|legend=1|rank=3| 4 -3 -14 -4 }}

This produces

  • Wedgie⟨⟨⟨ 4 -3 -14 -4 ]]]

See also