Template:Spell list table row: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
(Support for rest of damage fields) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
}} | <div style="text-align:center">-</div> }}</td> | }} | <div style="text-align:center">-</div> }}</td> | ||
<td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}} | <td><!-- | ||
Filler "-" if neither range nor area are specified | |||
-->{{#if: {{{range|}}}{{{area|}}} | | <div style="text-align:center">-</div> }}<!-- | |||
Range may be empty, have one of the special values, or in the format <range in m> / <range in ft> | |||
-->{{#if: {{{range|}}} | {{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}} | |||
| self | | self | ||
| Self = Self | | Self = Self | ||
Line 29: | Line 33: | ||
| ranged = 18 m / 60 ft | | ranged = 18 m / 60 ft | ||
| #default = {{#explode: {{{range}}} |/|0 }}m / {{#explode: {{{range}}} |/|1 }}ft | | #default = {{#explode: {{{range}}} |/|0 }}m / {{#explode: {{{range}}} |/|1 }}ft | ||
}} {{#if: {{{area|}}} | }}}}{{#if: {{{area|}}} | ||
| <br>{{SmallIcon|Aoe Icon.png}}{{nbts}}{{#explode: {{{area}}} |/|0 }}m / {{#explode: {{{area}}} |/|1 }}ft {{#switch: {{lc:{{{aoe|{{!}}}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }} | | {{#if: {{{range|}}} | <br>}}{{SmallIcon|Aoe Icon.png}}{{nbts}}{{#explode: {{{area}}} |/|0 }}m / {{#explode: {{{area}}} |/|1 }}ft {{#switch: {{lc:{{{aoe|{{!}}}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }} | ||
| | | | ||
}}</td> | }}</td> | ||
Line 38: | Line 42: | ||
</td> | </td> | ||
<td style="text-align: center; vertical-align: middle;">{{#if: {{{damage|}}}{{{damage type|}}} | {{ | <td style="text-align: center; vertical-align: middle;">{{#if: {{{damage|}}}{{{damage type|}}} | ||
| {{Damage inline | {{{damage}}} | {{{damage type}}} }}{{#if: {{{extra damage|}}}{{{extra damage type|}}} | |||
| <br>{{Damage inline | {{{extra damage}}} |{{{extra damage type}}} }} | |||
}}{{#if: {{{extra damage 2|}}}{{{extra damage type 2|}}} | |||
| <br>{{Damage inline | {{{extra damage 2}}} |{{{extra damage type 2}}} }} | |||
}}{{#if: {{{extra damage 3|}}}{{{extra damage type 3|}}} | |||
| <br>{{Damage inline | {{{extra damage}}} |{{{extra damage type 3}}} }} | |||
}} | |||
| <div style="text-align:center">-</div> }}</td> | |||
</tr> | </tr> | ||
Line 59: | Line 71: | ||
| name=Blade Ward | | name=Blade Ward | ||
| level=0 | | level=0 | ||
| casttime={{action}} | | casttime={{r|action}} | ||
| duration=2 | | duration=2 | ||
| range=self | | range=self | ||
Line 71: | Line 83: | ||
| level=0 | | level=0 | ||
| upcastable=yes | | upcastable=yes | ||
| casttime={{action}} | | casttime={{r|action}} | ||
| duration=2 | | duration=2 | ||
| range=self | | range=self | ||
Line 97: | Line 109: | ||
| name=Blade Ward | | name=Blade Ward | ||
| level=0 | | level=0 | ||
| casttime={{action}} | | casttime={{r|action}} | ||
| duration=2 | | duration=2 | ||
| range=self | | range=self | ||
Line 109: | Line 121: | ||
| level=0 | | level=0 | ||
| upcastable=y | | upcastable=y | ||
| casttime={{action}} | | casttime={{r|action}} | ||
| duration=2 | | duration=2 | ||
| range=self | | range=self | ||
Line 124: | Line 136: | ||
| name=Ensnaring Strike | | name=Ensnaring Strike | ||
| level=1 | | level=1 | ||
| casttime={{action}} | | casttime={{r|action}} | ||
| duration=10 | | duration=10 | ||
| range=weapon | | range=weapon | ||
| save=Dexterity | | save=Dexterity | ||
| attack=yes | | attack=yes | ||
| damage = weapon | |||
}} | }} | ||
{{Spell list table row/footer}} | {{Spell list table row/footer}} | ||
Line 154: | Line 167: | ||
"casttime": { | "casttime": { | ||
"description": "Casting time of the Spell", | "description": "Casting time of the Spell", | ||
"default": "{{ | "default": "{{r|action}}", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"{{ | "{{r|action}}", | ||
"{{ | "{{r|bonus}}", | ||
"{{ | "{{r|reaction}}", | ||
"{{r|action}} +{{r|bonus}}" | |||
] | ] | ||
}, | }, |
Latest revision as of 21:37, 7 February 2025
Example:
{{Spell list table row | controller icon=Flame Blade Icon.webp | level=0 | 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=0 | casttime={{r|action}} | duration=2 | range=self | conc=required | attack=no }} {{Spell list table row | spell=Firebolt? | controller icon=Fire Bolt Icon.webp | name=Firebolt? | level=0 | upcastable=yes | casttime={{r|action}} | duration=2 | range=self | ritual=true | attack=no }}
Result:
Name | Level | Cast time | Duration | Range/Area | Attack/Save | Damage/Effect | |
---|---|---|---|---|---|---|---|
C | ![]() |
- |
![]() |
2d6![]() |
|||
![]() |
C | ![]() |
![]() |
![]() |
-
|
- |
|
![]() |
C | ![]() |
![]() |
![]() |
-
|
1d10![]() 2d8 ![]() |
|
1 | ![]() |
![]() |
![]() |
Normal weapon damage |
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 |