Difference between revisions of "Template:Roll"

From NsdWiki
Jump to: navigation, search
(New page: <table cellpadding="0" cellspacing="10" class="roll" style="background-color: #fff; border: 1px solid #333;"> {{ #if: {{{caption|}}}|<caption>{{{caption}}}</caption>|}} <tr> <td>[[Image:13...)
 
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table cellpadding="0" cellspacing="10" class="roll" style="background-color: #fff; border: 1px solid #333;">
+
<includeonly>{| class="roll" style="background-color: #fff; border: 1px solid #333;" cellpadding="0" cellspacing="10"
{{ #if: {{{caption|}}}|<caption>{{{caption}}}</caption>|}}
+
|+ {{{caption|}}}
<tr>
+
|-
<td>[[Image:134479.jpg|48px|d10]]</td>
+
|align="center"|[[Image:D10.svg|36px|d10]]{{#if:{{{bonus1|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus1}}}}}{{#if:{{{bonus2|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus2}}}}}{{#if:{{{bonus3|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus3}}}}}{{#if:{{{bonus4|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus4}}}}}{{#if:{{{bonus5|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus5}}}}}{{#if:{{{bonus6|}}}|{{!}}{{!}}align="center"{{!}}{{plus}}{{!}}{{!}}align="center"{{!}}{{{bonus6}}}}}
{{ #if: {{{bonus1|}}}|<td>+ {{{bonus1}}}</td>|}}
+
|}</includeonly><noinclude>The Roll template is used to show a die roll and its bonuses. It has up to 6 bonus parameters.
{{ #if: {{{bonus2|}}}|<td>+ {{{bonus2}}}</td>|}}
+
<nowiki>{{roll
{{ #if: {{{bonus3|}}}|<td>+ {{{bonus3}}}</td>|}}
+
|bonus1=A
{{ #if: {{{bonus4|}}}|<td>+ {{{bonus4}}}</td>|}}
+
|bonus2=B
{{ #if: {{{bonus5|}}}|<td>+ {{{bonus5}}}</td>|}}
+
|bonus3=C
{{ #if: {{{bonus6|}}}|<td>+ {{{bonus6}}}</td>|}}
+
|bonus4=D
</tr>
+
|bonus5=E
</table>
+
|bonus6=F
 +
}}</nowiki>
 +
Yields:
 +
{{roll
 +
|bonus1=A
 +
|bonus2=B
 +
|bonus3=C
 +
|bonus4=D
 +
|bonus5=E
 +
|bonus6=F
 +
}}
 +
</noinclude>

Latest revision as of 14:42, 26 June 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