Template:Spell list table row: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
Line 38: | Line 38: | ||
</td> | </td> | ||
<td>{{#if: {{{damage|}}}{{{damage type|}}} | {{DamageText|{{{damage}}}|{{{damage type}}} }}{{#if: {{{extra damage|}}}{{{extra damage type|}}} | {{DamageText|{{{extra damage}}}|{{{extra damage type}}} }}}} | <div style="text-align:center">-</div> }}</td> | <td>{{#if: {{{damage|}}}{{{damage type|}}} | {{DamageText|{{{damage}}}|{{{damage type}}} }}{{#if: {{{extra damage|}}}{{{extra damage type|}}} | <br>{{DamageText|{{{extra damage}}}|{{{extra damage type}}} }}}} | <div style="text-align:center">-</div> }}</td> | ||
</tr> | </tr> | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 21:09, 16 April 2024
Example:
{{Spell list table row | controller icon=Flame Blade Icon.webp | level=Cantrip | spell=Flame Blade (Spell) | name=Flame Blade | area=2/7 | save=DEX | damage=2d6 | damage type=Acid }} {{Spell list table row | spell=Blade Ward | controller icon=Blade Ward Icon.webp | name=Blade Ward | level=Cantrip | casttime={{action}} | duration=2 | range=self | conc=required | attack=no }} {{Spell list table row | spell=Firebolt? | controller icon=Fire Bolt Icon.webp | name=Firebolt? | level=Cantrip | upcastable=yes | casttime={{action}} | duration=2 | range=self | ritual=true | attack=no }}
Result:
template data
Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns.
Parameter | Description | Type | Status | |
---|---|---|---|---|
spell | spell | Name of the spell | String | required |
level | level | The level of the spell.
| Unknown | optional |
upcastable | upcastable | If specified, adds the upcastable marker next to the level. | Boolean | optional |
controller icon | controller icon | File name of the spell's icon. | String | optional |
conc | conc | If specified, marks spell as requiring concentration.
| Boolean | optional |
ritual | ritual | If specified, marks spell as ritual. | Boolean | optional |
casttime | casttime | Casting time of the Spell
| Unknown | optional |
duration | duration | Duration of the spell.
| Unknown | optional |
range | range | Range of the spell separated by "/".
| String | optional |
area | area | AoE range of the spell separated by "/". | String | optional |
aoe | aoe | AoE type of the spell.
| String | optional |
attack | attack | Does spell require an attack roll.
| String | optional |
save | save | Does spell require a saving throw against its DC.
| String | optional |
damage | damage | Type of the damage dealt by the Spell.
| String | optional |