Difference between revisions of "Template:Dice"

From DDO Compendium
Line 11: Line 11:


<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}}}*{{{3|6}}})*{{{1|1}}}+{{{4|0}}}}} | placement = bottom }}
</onlyinclude>
</onlyinclude>

Revision as of 16:07, 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