Difference between revisions of "User:Paxed/Template:dice"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly> | + | <onlyinclude><includeonly>{{{1}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}} ( {{#expr: {{:User:Paxed/Template:dicemin|{{{1}}}}} {{{2|}}} {{:User:Paxed/Template:dicemin|{{{3|}}}}} {{{4|}}} {{:User:Paxed/Template:dicemin|{{{5|}}}}} }} - {{#expr: {{:User:Paxed/Template:dicemax|{{{1}}}}} {{{2|}}} {{:User:Paxed/Template:dicemax|{{{3|}}}}} {{{4|}}} {{:User:Paxed/Template:dicemax|{{{5|}}}}} }} )</includeonly></onlyinclude> |
− | {{{1}}} ( {{:User:Paxed/Template:dicemin|{{{1}}}}} - {{:User:Paxed/Template:dicemax|{{{1}}}}} ) | ||
− | </includeonly></onlyinclude> | ||
This template shows dicerolls in the standard [[d notation|d-notation]] and their minimum and maximum values. | This template shows dicerolls in the standard [[d notation|d-notation]] and their minimum and maximum values. | ||
Line 14: | Line 12: | ||
Output: | Output: | ||
*<tt><nowiki>{{dice|1d6}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|1d6}}</tt> | *<tt><nowiki>{{dice|1d6}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|1d6}}</tt> | ||
− | *<tt><nowiki>{{dice|2d10|+5}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|2d10|+5}}</tt> | + | *<tt><nowiki>{{dice|2d10|+|5}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|2d10|+|5}}</tt> |
− | *<tt><nowiki>{{dice|3d8|-2}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|3d8|-2}}</tt> | + | *<tt><nowiki>{{dice|3d8|-|2}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|3d8|-|2}}</tt> |
− | *<tt><nowiki>{{dice|1d10|+1d8}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|1d10|+1d8}}</tt> | + | *<tt><nowiki>{{dice|1d10|+|1d8}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|1d10|+|1d8}}</tt> |
− | *<tt><nowiki>{{dice|2d8|+2d4|+5}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|2d8|+2d4|+5}}</tt> | + | *<tt><nowiki>{{dice|2d8|+|2d4|+|5}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|2d8|+|2d4|+|5}}</tt> |
− | *<tt><nowiki>{{dice|10d10|+5d4|-10}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|10d10|+5d4|-10}}</tt> | + | *<tt><nowiki>{{dice|10d10|+|5d4|-|10}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dice|10d10|+|5d4|-|10}}</tt> |
<nowiki> | <nowiki> | ||
− | |||
− | |||
− | |||
− | |||
{{{1}}}d{{{2}}}{{#if: {{{3|}}} |{{#ifexpr: {{{3|0}}} > 0 |+{{{3}}} |{{#ifexpr: {{{3|0}}} < 0 |{{{3}}} | }} }} }} ({{#expr:{{{1}}}+{{{3|0}}}}}-{{#expr:{{{1}}}*{{{2}}}+{{{3|0}}}}}) | {{{1}}}d{{{2}}}{{#if: {{{3|}}} |{{#ifexpr: {{{3|0}}} > 0 |+{{{3}}} |{{#ifexpr: {{{3|0}}} < 0 |{{{3}}} | }} }} }} ({{#expr:{{{1}}}+{{{3|0}}}}}-{{#expr:{{{1}}}*{{{2}}}+{{{3|0}}}}}) | ||
</nowiki> | </nowiki> |
Revision as of 18:41, 4 March 2008
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 ( Expression error: Unexpected number. - 6 )
- {{dice|2d10|+|5}} shows 2d10+5 ( Expression error: Unexpected number. - 25 )
- {{dice|3d8|-|2}} shows 3d8-2 ( Expression error: Unexpected number. - 22 )
- {{dice|1d10|+|1d8}} shows 1d10+1d8 ( Expression error: Unexpected number. - 18 )
- {{dice|2d8|+|2d4|+|5}} shows 2d8+2d4+5 ( 9 - 29 )
- {{dice|10d10|+|5d4|-|10}} shows 10d10+5d4-10 ( 5 - 110 )
{{{1}}}d{{{2}}}{{#if: {{{3|}}} |{{#ifexpr: {{{3|0}}} > 0 |+{{{3}}} |{{#ifexpr: {{{3|0}}} < 0 |{{{3}}} | }} }} }} ({{#expr:{{{1}}}+{{{3|0}}}}}-{{#expr:{{{1}}}*{{{2}}}+{{{3|0}}}}})