Template:Multival: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
- badass invalid character; - val class (has no effects) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{legend|}}}|[[Wedgie]]: }} | <includeonly>{{#if: {{{legend|}}}|[[Wedgie]]: }}<span class="left-delim">⟨{{#switch: {{{rank|2}}} | ||
| #default=⟨ | | #default=⟨ | ||
| 3=⟨⟨ | | 3=⟨⟨ | ||
| 4=⟨⟨⟨ | | 4=⟨⟨⟨ | ||
}} | }}</span>{{trim|{{{1|0}}}}}<span class="right-delim">]{{#switch: {{{rank|2}}} | ||
| #default=] | | #default=] | ||
| 3=]] | | 3=]] | ||
| 4=]]] | | 4=]]] | ||
}} | }}</span></includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 15:29, 23 September 2026
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]]] |
See also
- Template:Val
- Template:Mapping
- Template:Multimonzo
- Template:LaTeX mapping operators – For typesetting multimonzos and multivals up to four dimensions in LaTeX.