Difference between revisions of "Template:Dice"

From DDO Compendium
(Created page with "Template for dice rolls. <nowiki>{{{1}}} = multiplier {{{2}}} = amount of dice {{{3}}} = amount of sides {{{4}}} = number to add </nowiki> Example: <nowiki>{{Dice|1.25|2|8...")
 
Line 8: Line 8:
Example:
Example:
  <nowiki>{{Dice|1.25|2|8|6}}</nowiki>
  <nowiki>{{Dice|1.25|2|8|6}}</nowiki>
{{Dice|1.25|2|8|6}}
results in: {{Dice|1.25|2|8|6}}


<onlyinclude>
<onlyinclude>
{{#bootstrap_tooltip: {{{1|1}}}[{{{2|1}}}d{{{3|6}}}] + {{{4|0}}} | text = {{#expr:{{{2|1}}}*{{{1|1}}}+{{{3|0}}}}} - {{#expr:({{{2|1}}}*{{{2}}})*{{{1|1}}}+{{{4|0}}}}} | placement = bottom }}
{{#bootstrap_tooltip: {{{1|1}}}[{{{2|1}}}d{{{3|6}}}] + {{{4|0}}} | text = {{#expr:{{{2|1}}}*{{{1|1}}}+{{{3|0}}}}} - {{#expr:({{{2|1}}}*{{{2}}})*{{{1|1}}}+{{{4|0}}}}} | placement = bottom }}
</onlyinclude>
</onlyinclude>

Revision as of 16:03, 1 May 2018

Template for dice rolls.

{{{1}}} = multiplier
{{{2}}} = amount of dice
{{{3}}} = amount of sides
{{{4}}} = number to add 

Example:

{{Dice|1.25|2|8|6}}

results in: 1.25[2d8] + 6


1[1d6] + 0