Template:Multival/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
Update; left-align variable-length table contents
 
Line 5: Line 5:


=== Usage ===
=== Usage ===
{| class="wikitable center-all"
{| class="wikitable"
|-
|-
! You type !! You get
! You type !! You get
Line 15: Line 15:
| {{{{ROOTPAGENAME}}|rank=3| 4 -3 -14 -4 }}
| {{{{ROOTPAGENAME}}|rank=3| 4 -3 -14 -4 }}
|}
|}
To include a legend, type
* <code><nowiki>{{multival|legend=1|rank=3| 4 -3 -14 -4 }}</nowiki></code>
This produces
* {{{{ROOTPAGENAME}}|legend=1|rank=3| 4 -3 -14 -4 }}


== See also ==
== See also ==

Latest revision as of 15:46, 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