|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#if: {{{legend|}}} | [[Wedgie]]: }}<span class="val"><span class="left-delim">⟨{{#switch: {{{rank|2}}} | 2 = ⟨ | 3 = ⟨⟨ | 4 = ⟨⟨⟨ }}</span>{{trim| {{{1|0}}} }}<span class="right-delim">]{{#switch: {{{rank|2}}} | 2 = ] | 3 = ]] | 4 = ]]] }}</span></span></includeonly><noinclude> | | <includeonly>{{#if: {{{legend|}}}|[[Wedgie]]: }}<span class="val"><span class="left-delim">⟨{{#switch: {{{rank|2}}} |
| This template eases using [[wedgie]] notation: it puts the right brackets (<code>⟨⟨</code> and <code>]]</code>) around its arguments (it also removes surrounding space).
| | | #default=⟨ |
| | | | 3=⟨⟨ |
| 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>.
| | | 4=⟨⟨⟨ |
| | | }} </span>{{trim|{{{1|0}}}}}<span class="right-delim"> ]{{#switch: {{{rank|2}}} |
| == Usage ==
| | | #default=] |
| ; You type
| | | 3=]] |
| * <code><nowiki>{{Multival| 1 4 10 4 13 12 }}</nowiki></code>
| | | 4=]]] |
| * <code><nowiki>{{Multival| rank=3 | 4 -3 -14 -4 }}</nowiki></code>
| | }}</span></span></includeonly><noinclude> |
| | | {{documentation}} |
| ; You get
| |
| * {{ {{PAGENAME}} | 1 4 10 4 13 12 }}
| |
| * {{ {{PAGENAME}} | rank=3 | 4 -3 -14 -4 }}
| |
| | |
| ; To include a legend, type
| |
| * <code><nowiki>{{Multival| legend=1 | rank=3 | 4 -3 -14 -4 }}</nowiki></code>
| |
| | |
| ; So you get
| |
| * {{ {{PAGENAME}} | legend=1 | rank=3 | 4 -3 -14 -4 }}
| |
| | |
| == See also ==
| |
| * [[Template: Val]]
| |
| * [[Template: Mapping]]
| |
| * [[Template: Multimonzo]]
| |
|
| |
|
| [[Category:Formatting templates]] | | [[Category:Formatting templates]] |
|
| |
| </noinclude> | | </noinclude> |