Template:Multival

Revision as of 13:32, 10 March 2021 by FloraC (talk | contribs) (Created page with "<includeonly>{{#if: {{{legend|}}} | Wedgie: }}<span class="val"><span class="left-delim">⟨{{#switch: {{{rank|2}}} | 2 = ⟨ | 3 = ⟨⟨ | 4 = &...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.

You type
  • {{Multival| 1 4 10 4 13 12 }}
  • {{Multival| rank=3 | 4 -3 -14 -4 }}
You get
  • ⟨⟨1 4 10 4 13 12]]
  • ⟨⟨⟨4 -3 -14 -4]]]
To include a legend, type
  • {{Multival| legend=1 | rank=3 | 4 -3 -14 -4 }}
So you get
  • Wedgie⟨⟨⟨4 -3 -14 -4]]]