Template:Dice

From DDO Compendium
Revision as of 23:56, 3 May 2018 by MNDeveloper (talk | contribs) (I reverted the changes because we want the page to look like it does in DDO, and the always show the brackets, not just when needed.)

This template is used to generate dice rolls, with a tooltip to show the actual range.

Used in this manner:
{{Dice|(multiplier (opt))|(count)|(sides)|(addbeforemultiplier(opt))|(addaftermultiplier(opt))}}

Such that {{Dice|1.25|2|8|4|6}} results in
1.25[2d8+4]+6
{{Dice||2|8}} results in
[2d8]
{{Dice||2|8||3}} results in
[2d8]+3
{{Dice||2|8|4|3}} results in
[2d8+4]+3


[{{{2}}}d{{{3}}}]