User:Paxed/Template:dice
Jump to navigation
Jump to search
This template shows dicerolls in the standard d-notation and their minimum and maximum values.
Usage: {{dice|AdB|+|C}}
Where:
- A is the number of dice to be rolled.
- B is the number of sides the dices have.
- C is an (optional) modifier added after the diceroll.
Output:
- {{dice|1d6}} shows
1d6 ( 1 - 6 )
- {{dice|2d10|+5}} shows
2d10 ( 2 - 20 )
- {{dice|3d8|-2}} shows
3d8 ( 3 - 24 )
- {{dice|1d10|+1d8}} shows
1d10 ( 1 - 10 )
- {{dice|2d8|+2d4|+5}} shows
2d8 ( 2 - 16 )
- {{dice|10d10|+5d4|-10}} shows
10d10 ( 10 - 100 )
1d6+2 (3 - 8)
{{{1}}}d{{{2}}}{{#if: {{{3|}}} |{{#ifexpr: {{{3|0}}} > 0 |+{{{3}}} |{{#ifexpr: {{{3|0}}} < 0 |{{{3}}} | }} }} }} ({{#expr:{{{1}}}+{{{3|0}}}}}-{{#expr:{{{1}}}*{{{2}}}+{{{3|0}}}}})