Difference between revisions of "Template:Dice"
From DDO Compendium
MNDeveloper (talk | contribs) |
|||
Line 1: | Line 1: | ||
<noinclude>This template is used to generate dice rolls, with a tooltip to show the actual range.[[Category:Template]] | |||
Used in this manner: | |||
<br><nowiki>{{Dice|(multiplier)|(count)|(sides)|(addbeforemultiplier)|(addaftermultiplier)}}</nowiki><br> | |||
<br>Such that <nowiki>{{Dice|1.25|2|8|0|6}}</nowiki> results in | |||
<br>{{Dice|1.25|2|8|0|6}} | |||
</noinclude> | |||
results in | |||
<onlyinclude> | <onlyinclude> | ||
{{#bootstrap_tooltip: {{{1| | {{#bootstrap_tooltip: {{{1|}}}[{{{2}}}d{{{3}}}{{#if: {{{4|}}} | + {{{4}}}}}] {{#if: {{{5|}}} |+ {{{5}}}}} | text = {{#expr:{{{2}}}*({{{3}}}+{{{4|0}}})}} - {{#expr:({{{1|1}}}*{{{2|1}}})*({{{3|1}}}+{{{4|0}}}) + {{{5|0}}}}} | placement = bottom }} | ||
</onlyinclude> | </onlyinclude> |
Revision as of 16:42, 1 May 2018
This template is used to generate dice rolls, with a tooltip to show the actual range.
Used in this manner:
{{Dice|(multiplier)|(count)|(sides)|(addbeforemultiplier)|(addaftermultiplier)}}
Such that {{Dice|1.25|2|8|0|6}} results in
1.25[2d8+ 0] + 6
[{{{2}}}d{{{3}}}]