Template:Range: Difference between revisions
From Vintage Story Wiki
VeryGoodDog (talk | contribs) m (docs) |
(Translate tags and Template:Documentation) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2}}} | <noinclude><languages /></noinclude><includeonly>{{#if: {{{2}}} | ||
|{{#expr: {{{1}}} - {{{2}}} }} - {{#expr: {{{1}}} + {{{2}}} }} | |{{#expr: {{{1}}} - {{{2}}} }} - {{#expr: {{{1}}} + {{{2}}} }} | ||
|{{{1}}} | |{{{1}}} | ||
}}{{Hovertip|*|2.5 means 2 + 50% chance}}</includeonly><noinclude> | }}{{Hovertip|*|<translate>2.5 means 2 + 50% chance</translate>}}</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> | </noinclude> |
Revision as of 11:05, 21 November 2023
[view | edit | history | purge this page]Documentation
Use when you want to show a range of values without doing math.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Average | 1 | no description
| Number | required |
Variance | 2 | no description
| Number | optional |
Usage
{{Range|2.3|1.2}}
Examples
{{Range|2.3|1.2}}
turns into 1.1 - 3.5*
.
[view | edit | history | purge this page]The above documentation is transcluded from Template:Range/doc.