Difference between revisions of "Template:Roll"

From NsdWiki
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{| class="roll" style="background-color: #fff; border: 1px solid #333;" cellpadding="0" cellspacing="10"
+
<includeonly>{| class="roll" style="background-color: #fff; border: 1px solid #333;" cellpadding="0" cellspacing="10"
 
|+ {{{caption|}}}
 
|+ {{{caption|}}}
 
|-
 
|-
 
| [[Image:D10.svg|36px|d10]] {{#if:{{{bonus1|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus1}}}}}{{#if:{{{bonus2|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus2}}}}}{{#if:{{{bonus3|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus3}}}}}{{#if:{{{bonus4|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus4}}}}}{{#if:{{{bonus5|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus5}}}}}{{#if:{{{bonus6|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus6}}}}}
 
| [[Image:D10.svg|36px|d10]] {{#if:{{{bonus1|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus1}}}}}{{#if:{{{bonus2|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus2}}}}}{{#if:{{{bonus3|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus3}}}}}{{#if:{{{bonus4|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus4}}}}}{{#if:{{{bonus5|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus5}}}}}{{#if:{{{bonus6|}}}|{{!}}{{!}}{{plus}}{{!}}{{!}}{{{bonus6}}}}}
|}</noinclude><includeonly>The Roll template is used to show a die roll and its bonuses. It has up to 6 bonus parameters.
+
|}</includeonly><noinclude>The Roll template is used to show a die roll and its bonuses. It has up to 6 bonus parameters.
 
  <nowiki>{{roll
 
  <nowiki>{{roll
 
  |bonus1=A
 
  |bonus1=A
Line 21: Line 21:
 
|bonus6=F
 
|bonus6=F
 
}}
 
}}
</includeonly>
+
</noinclude>

Revision as of 21:05, 21 March 2010

The Roll template is used to show a die roll and its bonuses. It has up to 6 bonus parameters.

{{roll
 |bonus1=A
 |bonus2=B
 |bonus3=C
 |bonus4=D
 |bonus5=E
 |bonus6=F
 }}

Yields:

d10 + A + B + C + D + E + F