Template:Range: Difference between revisions

From Vintage Story Wiki
Marked this version for translation
m (add hover tip to end for explaination)
(Marked this version for translation)
 
(4 intermediate revisions by 2 users not shown)
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><!--T:1--> 2.5 means 2 + 50% chance</translate>}}</includeonly><noinclude>
{| class="wikitable"
{{Documentation}}
|-
! Parameter !! Required or Optional, default if applicable !! Example
|-
| Unnamed 1 || Required || 2.3
|-
| Unnamed 2 || Optional || 1.2
|}
 
Use when you want to show a range of values without doing math. <code><nowiki>{{Drops/range|2.3|1.2}}</nowiki></code> turns into <code>{{Drops/range|2.3|1.2}}</code>.
</noinclude>
</noinclude>
Confirmedusers
1,783

edits