Template:Spell list table row: Difference between revisions
Jump to navigation
Jump to search
(Rearrange documentation) |
(Add "ritual" parameter) |
||
Line 3: | Line 3: | ||
<td>{{#if: {{{image|}}} | <td>{{#if: {{{image|}}} | ||
| {{IconLink|{{{image}}}|{{{spell}}}}} | | {{IconLink|{{{image}}}|{{{spell}}}}} | ||
| {{SAI|{{{spell}}}|w=40|c={{# | | {{SAI|{{{spell}}}|w=40|c={{#if:{{{conc|}}}| 20 | }}|r={{#if:{{{ritual|}}}|16}}}} | ||
}} </td> | }} </td> | ||
Line 81: | Line 81: | ||
| range=self | | range=self | ||
| conc=required | | conc=required | ||
| attack=no | |||
}} | |||
{{Spell list table row | |||
| spell=Firebolt? | |||
| casttime={{action}} | |||
| duration=2 | |||
| range=self | |||
| ritual=true | |||
| attack=no | | attack=no | ||
}} | }} | ||
Line 99: | Line 107: | ||
}, | }, | ||
"conc": { | "conc": { | ||
"description": " | "description": "If specified, marks spell as requiring concentration.", | ||
"type": " | "type": "boolean", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"required" | "required" | ||
Line 190: | Line 198: | ||
], | ], | ||
"type": "string" | "type": "string" | ||
}, | |||
"ritual": { | |||
"description": "If specified, marks spell as ritual.", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
Line 197: | Line 209: | ||
"image", | "image", | ||
"conc", | "conc", | ||
"ritual", | |||
"casttime", | "casttime", | ||
"duration", | "duration", |
Revision as of 18:04, 16 October 2023
Example:
{| class=wikitable style="width: 100%;" ! | Name ! | Casting Time ! | Duration ! | Range / Area ! | Attack / Save ! | Damage / Effect |- {{SpellListTableRow | image=Acid Splash Icon.png | spell=Acid Splash | area=2/7 | save=DEX | damage=Acid }} {{SpellListTableRow | spell=Blade Ward | casttime={{action}} | duration=2 | range=self | conc=required | attack=no }} |}
Result:
Name | Level | Cast time | Duration | Range/Area | Attack/Save | Damage/Effect | |
---|---|---|---|---|---|---|---|
Action | - | 18m / 60ft 2m / 7ft (Radius) |
Attack roll Dexterity saving throw |
Acid | |||
Action | 2 turns | Self | - | - | |||
Action | 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 |
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 |