Template:Dice

From DDO Compendium
Revision as of 13:29, 10 February 2022 by MNDeveloper (talk | contribs)

Dice[edit]

This template is used to display a possible dice roll. This is specifically used on weapons to say what is the basic damage amount possible. It uses a bootstrap tooltip to show the range of values.

Example Usage
{{Dice|1.25|2|8|4|6}}This tooltip is missing its text attribute and therefore the actual tooltip. | text = Range: 13.5
- 31
| placement = bottom }}
{{Dice||2|8}}This tooltip is missing its text attribute and therefore the actual tooltip. | text = Range: 2
- 16
| placement = bottom }}
{{Dice||2|8||3}}This tooltip is missing its text attribute and therefore the actual tooltip. | text = Range: 5
- 19
| placement = bottom }}
{{Dice||2|8|4|3}}This tooltip is missing its text attribute and therefore the actual tooltip. | text = Range: 9
- 23
| placement = bottom }}

Usage[edit]

{{Dice|(Multiplier)|(Die Count)|(Die Sides)|(Add Before Multiplier)|(Add After Multiplier)}}

Parameter Documentation
MultiplierThis is the amount that the dice roll is multiplied by: 1.25[2d8+4]+6
Die CountThis is the number of die that will be rolled: 1.25[2d8+4]+6
Die SidesThis is the number of sides that the die that is rolled will have: 1.25[2d8+4]+6
Add Before MultiplierThis is the amount that is added to the die roll before the multiplier: 1.25[2d8+4]+6
Add After MultiplierThis is the amount that is added to the roll after the multiplier: 1.25[2d8+4]+6

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


This tooltip is missing its text attribute and therefore the actual tooltip. | text = Range: Expression error: Unrecognized punctuation character "{".

- Expression error: Unrecognized punctuation character "{".
| placement = bottom }}