Template:Multival: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{#if: {{{legend|}}} | Wedgie: }}<span class="val"><span class="left-delim">⟨{{#switch: {{{rank|2}}} | 2 = ⟨ | 3 = ⟨⟨ | 4 = &..." |
Sectioning; -"text" parameter |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{legend|}}} | [[Wedgie]]: }}<span class="val"><span class="left-delim">⟨{{#switch: {{{rank|2}}} | 2 = ⟨ | 3 = ⟨⟨ | 4 = ⟨⟨⟨ }}</span>{{trim| {{{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> | ||
This template eases using [[wedgie]] notation: it puts the right brackets (<code>⟨⟨</code> and <code>]]</code>) around its arguments (it also removes surrounding space). | This template eases using [[wedgie]] notation: it puts the right brackets (<code>⟨⟨</code> and <code>]]</code>) around its arguments (it also removes surrounding space). | ||
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>. | ||
== Usage == | |||
; You type | ; You type | ||
* <code><nowiki>{{Multival| 1 4 10 4 13 12 }}</nowiki></code> | * <code><nowiki>{{Multival| 1 4 10 4 13 12 }}</nowiki></code> | ||
Line 18: | Line 18: | ||
; So you get | ; So you get | ||
* {{ {{PAGENAME}} | legend=1 | rank=3 | 4 -3 -14 -4 }} | * {{ {{PAGENAME}} | legend=1 | rank=3 | 4 -3 -14 -4 }} | ||
== See also == | |||
* [[Template: Val]] | |||
* [[Template: Mapping]] | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 11:11, 25 May 2023
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
{{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]]]
See also