Template:Spell list table row: Difference between revisions
Jump to navigation
Jump to search
(add spell level) |
(add upcastable) |
||
Line 5: | Line 5: | ||
| {{SAI|{{{spell}}}|w=40|c={{#if:{{{conc|}}}| 20 | }}|r={{#if:{{{ritual|}}}|16}}}} | | {{SAI|{{{spell}}}|w=40|c={{#if:{{{conc|}}}| 20 | }}|r={{#if:{{{ritual|}}}|16}}}} | ||
}} </td> | }} </td> | ||
<td>{{{level|}}}</td> | <td>{{{level|}}}{{#if:{{{upcastable|}}}| {{upcastable}} }}</td> | ||
<td>{{action icon|{{{ casttime|}}}}}</td> | <td>{{action icon|{{{ casttime|}}}}}</td> | ||
Line 43: | Line 43: | ||
Example: | Example: | ||
<pre> | <pre> | ||
{ | {{Spell list table row | ||
{ | |||
| image=Acid Splash Icon.png | | image=Acid Splash Icon.png | ||
| level=Cantrip | |||
| spell=Acid Splash | | spell=Acid Splash | ||
| area=2/7 | | area=2/7 | ||
Line 58: | Line 51: | ||
| damage=Acid | | damage=Acid | ||
}} | }} | ||
{{ | {{Spell list table row | ||
| spell=Blade Ward | | spell=Blade Ward | ||
| level=Cantrip | |||
| casttime={{action}} | | casttime={{action}} | ||
| duration=2 | | duration=2 | ||
Line 66: | Line 60: | ||
| attack=no | | attack=no | ||
}} | }} | ||
|} | {{Spell list table row | ||
| spell=Firebolt? | |||
| level=Cantrip | |||
| upcastable=yes | |||
| casttime={{action}} | |||
| duration=2 | |||
| range=self | |||
| ritual=true | |||
| attack=no | |||
}} | |||
</pre> | </pre> | ||
Line 92: | Line 95: | ||
| spell=Firebolt? | | spell=Firebolt? | ||
| level=Cantrip | | level=Cantrip | ||
| upcastable=y | |||
| casttime={{action}} | | casttime={{action}} | ||
| duration=2 | | duration=2 | ||
Line 221: | Line 225: | ||
"Cantrip" | "Cantrip" | ||
] | ] | ||
}, | |||
"upcastable": { | |||
"description": "If specified, adds the upcastable marker next to the level.", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
Line 227: | Line 235: | ||
"spell", | "spell", | ||
"level", | "level", | ||
"upcastable", | |||
"image", | "image", | ||
"conc", | "conc", |
Revision as of 21:27, 17 October 2023
Example:
{{Spell list table row | image=Acid Splash Icon.png | level=Cantrip | spell=Acid Splash | area=2/7 | save=DEX | damage=Acid }} {{Spell list table row | spell=Blade Ward | level=Cantrip | casttime={{action}} | duration=2 | range=self | conc=required | attack=no }} {{Spell list table row | spell=Firebolt? | level=Cantrip | upcastable=yes | casttime={{action}} | duration=2 | range=self | ritual=true | attack=no }}
Result:
Name | Level | Cast time | Duration | Range/Area | Attack/Save | Damage/Effect | |
---|---|---|---|---|---|---|---|
Cantrip | - | {{{range}}}m / ft 2m / 7ft (Radius) |
DEX save | Acid | |||
Cantrip | 2 turns | Self | - | ||||
Cantrip | 2 turns | Self | - |
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 |
image | image | File name, auto-generated as "{{spell}} Icon.png" if not provided. | 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 |