Template:Spell list table row: Difference between revisions
Jump to navigation
Jump to search
(Add "ritual" parameter) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(36 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | |||
<tr> | <tr> | ||
<td>{{IconLink|{{{controller icon}}}|{{{spell}}}|{{{name}}}}}{{#if:{{{conc|}}}|{{Nbts}}{{Icon|Concentration Icon.png|20px|link=Concentration|caption=}}|}}{{#if:{{{ritual|}}}|{{Nbts}}{{Icon|Ritual_Spell_Icon.png|16px|link=Ritual Spells|caption=}}|}}</td> | |||
<td style="text-align:right;">{{#switch:{{{level|}}} | |||
| 0 = <span class="bg3wiki-help-tooltip" aria-label="Cantrip">C</span> | |||
| #default = {{{level|}}} | |||
}}</td> | |||
<td style="text-align:center;">{{#if:{{{upcastable|}}}|{{upcastable}} }}</td> | |||
<td style="text-align: center; vertical-align: middle;">{{action icon|{{{ casttime|}}}}}</td> | |||
<td style="text-align: center; vertical-align: middle;">{{#if: {{{duration|}}} | {{SmallIcon|Duration Icons.png}}{{nbts}}{{#switch: {{{duration}}} | |||
| 1 = 1 turn | | 1 = 1 turn | ||
| longrest = | | Until Long Rest | ||
| Long Rest | |||
| longrest = Long Rest | |||
| #default = {{{duration}}} turns | | #default = {{{duration}}} turns | ||
}} | - }}</td> | }} | <div style="text-align:center">-</div> }}</td> | ||
<td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}} | |||
| self | | self | ||
| Self = Self | | Self = Self | ||
Line 21: | Line 23: | ||
| Melee | | Melee | ||
| touch | | touch | ||
| Touch = 1. | | Touch = 1.5 m / 5 ft | ||
| weapon | | weapon | ||
| Weapon = Weapon Range | | Weapon = Weapon Range | ||
| short ranged = 15 m / 50 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: {{{aoe|{{!}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }} | | <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> | ||
<td style="text-align: center; vertical-align: middle;">{{#ifeq: {{{attack|}}} | 1 | {{Attack Roll}} | {{#if:{{{save|}}}||<div style="text-align:center">-</div>}} }} | |||
{{#if: {{{save|}}}|<div>{{short saving throw | {{{save}}} }}</div> }} | |||
</td> | |||
<td style="text-align: center; vertical-align: middle;">{{#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> | ||
Example: | Example: | ||
<pre> | <pre> | ||
{| | {{Spell list table row | ||
| controller icon=Flame Blade Icon.webp | |||
| level=0 | |||
| spell=Flame Blade (Spell) | |||
| name=Flame Blade | |||
| | |||
| area=2/7 | | area=2/7 | ||
| save=DEX | | save=DEX | ||
| damage=Acid | | damage=2d6 | ||
| damage type=Acid | |||
}} | }} | ||
{{ | {{Spell list table row | ||
| spell=Blade Ward | | spell=Blade Ward | ||
| controller icon=Blade Ward Icon.webp | |||
| name=Blade Ward | |||
| level=0 | |||
| casttime={{action}} | | casttime={{action}} | ||
| duration=2 | | duration=2 | ||
Line 62: | Line 65: | ||
| attack=no | | attack=no | ||
}} | }} | ||
|} | {{Spell list table row | ||
| spell=Firebolt? | |||
| controller icon=Fire Bolt Icon.webp | |||
| name=Firebolt? | |||
| level=0 | |||
| upcastable=yes | |||
| casttime={{action}} | |||
| duration=2 | |||
| range=self | |||
| ritual=true | |||
| attack=no | |||
}} | |||
</pre> | </pre> | ||
Line 69: | Line 83: | ||
{{Spell list table row/header}} | {{Spell list table row/header}} | ||
{{Spell list table row | {{Spell list table row | ||
| | | controller icon=Flame Blade Spell Icon.webp | ||
| spell= | | level=0 | ||
| spell=Flame Blade (Spell) | |||
| name=Flame Blade | |||
| area=2/7 | | area=2/7 | ||
| save=DEX | | save=DEX | ||
| damage=Acid | | damage=2d6 | ||
| damage type=Acid | |||
}} | }} | ||
{{Spell list table row | {{Spell list table row | ||
| spell=Blade Ward | | spell=Blade Ward | ||
| controller icon=Blade Ward Icon.webp | |||
| name=Blade Ward | |||
| level=0 | |||
| casttime={{action}} | | casttime={{action}} | ||
| duration=2 | | duration=2 | ||
Line 85: | Line 105: | ||
{{Spell list table row | {{Spell list table row | ||
| spell=Firebolt? | | spell=Firebolt? | ||
| controller icon=Fire Bolt Icon.webp | |||
| name=Firebolt? | |||
| level=0 | |||
| upcastable=y | |||
| casttime={{action}} | | casttime={{action}} | ||
| duration=2 | | duration=2 | ||
Line 90: | Line 114: | ||
| ritual=true | | ritual=true | ||
| attack=no | | attack=no | ||
| damage=1d10 | |||
| damage type=Piercing | |||
| extra damage=2d8 | |||
| extra damage type=Fire | |||
}} | |||
{{Spell list table row | |||
| spell=Ensnaring Strike (Ranged) | |||
| controller icon=Ensnaring Strike Ranged Icon.webp | |||
| name=Ensnaring Strike | |||
| level=1 | |||
| casttime={{action}} | |||
| duration=10 | |||
| range=weapon | |||
| save=Dexterity | |||
| attack=yes | |||
}} | }} | ||
{{Spell list table row/footer}} | {{Spell list table row/footer}} | ||
Line 97: | Line 136: | ||
{ | { | ||
"params": { | "params": { | ||
" | "controller icon": { | ||
"description": "File name | "description": "File name of the spell's icon.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 201: | Line 240: | ||
"ritual": { | "ritual": { | ||
"description": "If specified, marks spell as ritual.", | "description": "If specified, marks spell as ritual.", | ||
"type": "boolean" | |||
}, | |||
"level": { | |||
"description": "The level of the spell.", | |||
"suggestedvalues": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4", | |||
"5", | |||
"6", | |||
"Cantrip" | |||
] | |||
}, | |||
"upcastable": { | |||
"description": "If specified, adds the upcastable marker next to the level.", | |||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
Line 207: | Line 262: | ||
"paramOrder": [ | "paramOrder": [ | ||
"spell", | "spell", | ||
" | "level", | ||
"upcastable", | |||
"controller icon", | |||
"conc", | "conc", | ||
"ritual", | "ritual", |
Latest revision as of 15:59, 4 September 2024
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={{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={{action}} | duration=2 | range=self | ritual=true | attack=no }}
Result:
Name | Level | Cast time | Duration | Range/Area | Attack/Save | Damage/Effect | |
---|---|---|---|---|---|---|---|
C | - |
{{{range}}}m / ft 2m / 7ft (Radius) |
2d6Acid | ||||
C | 2 turns | Self | -
|
- |
|||
C | 2 turns | Self | -
|
1d10Piercing 2d8Fire |
|||
1 | 10 turns | Weapon Range | - |
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 |