Template:Range: Difference between revisions

From Vintage Story Wiki
Translate tags and Template:Documentation
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>
{| class="wikitable"
{{Documentation}}
|-
! Parameter !! Required or Optional, default if applicable !! Example
|-
| Unnamed 1, Average || Required || 2.3
|-
| Unnamed 2, Variance || Optional || 1.2
|}
 
Use when you want to show a range of values without doing math. <code><nowiki>{{Range|2.3|1.2}}</nowiki></code> turns into <code>{{Range|2.3|1.2}}</code>.
</noinclude>
</noinclude>
Confirmedusers
1,800

edits