Template:DieRoll



Usage
  gives:

Or, you can omit the text variable, in which case the dice variable contents will be used as the text label. For example:   gives:.

For specialized uses, there are derivatives of this template to make certain die rolls less wikitext to type out:
 * Template:Skill: Create skill check rolls with  
 * Template:Attack: Create attack rolls with  
 * Template:Damage: Create damage rolls with  
 * Template:Ability: Create ability check rolls with  </tt>

See also:
 * Template:DiceCalculator: Automatically calculate the average of dice with  </tt> to get.

NaN result
If you get a result of "NaN" in the popup results window ("Not a Number" in JavaScript), most likely you've mistyped your 'dice' attribute. Make sure your result meets the syntax on the Talk page and try again.