Template:Spell list table row: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Changed Attack to look for '1' rather then 'yes')
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
  <includeonly>
  <includeonly>
<tr>
<tr>
   <td>{{#if: {{{image|}}}
   <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>
  | {{IconLink|{{{image}}}|{{{spell}}}|{{{name}}}}}
  | {{SAI|{{{spell}}}|{{{name}}}|w=40|c={{#if:{{{conc|}}}| 20 | }}|r={{#if:{{{ritual|}}}|16}}}}
  }}</td>
   <td style="text-align:right;">{{#switch:{{{level|}}}
   <td style="text-align:right;">{{#switch:{{{level|}}}
   | 0 = <span class="bg3wiki-help-tooltip" aria-label="Cantrip">C</span>
   | 0 = <span class="bg3wiki-help-tooltip" aria-label="Cantrip">C</span>
Line 33: Line 30:
     | #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>
Line 41: Line 38:
   </td>
   </td>


   <td>{{#if: {{{damage|}}} | {{DamageType|{{{damage}}} }} | <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>
Line 47: Line 44:
<pre>
<pre>
{{Spell list table row
{{Spell list table row
| image=Flame Blade Icon.webp
| controller icon=Flame Blade Icon.webp
| level=Cantrip
| level=Cantrip
| spell=Flame Blade (Spell)
| spell=Flame Blade (Spell)
Line 53: Line 50:
| 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
| name=Blade Ward
| level=Cantrip
| level=Cantrip
Line 67: Line 66:
{{Spell list table row
{{Spell list table row
| spell=Firebolt?
| spell=Firebolt?
| controller icon=Fire Bolt Icon.webp
| name=Firebolt?
| name=Firebolt?
| level=Cantrip
| level=Cantrip
Line 82: Line 82:
{{Spell list table row/header}}
{{Spell list table row/header}}
{{Spell list table row
{{Spell list table row
| image=Flame Blade Spell Icon.webp
| controller icon=Flame Blade Spell Icon.webp
| level=Cantrip
| level=Cantrip
| spell=Flame Blade (Spell)
| spell=Flame Blade (Spell)
Line 88: Line 88:
| 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
| name=Blade Ward
| level=0
| level=0
Line 102: Line 104:
{{Spell list table row
{{Spell list table row
| spell=Firebolt?
| spell=Firebolt?
| controller icon=Fire Bolt Icon.webp
| name=Firebolt?
| name=Firebolt?
| level=0
| level=0
Line 110: Line 113:
| 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 list table row
| spell=Ensnaring Strike (Ranged)
| spell=Ensnaring Strike (Ranged)
| controller icon=Ensnaring Strike Ranged Icon.webp
| name=Ensnaring Strike
| name=Ensnaring Strike
| level=1
| level=1
Line 127: Line 135:
{
{
"params": {
"params": {
"image": {
"controller icon": {
"description": "File name, auto-generated as \"{{spell}} Icon.png\" if not provided.",
"description": "File name of the spell's icon.",
"type": "string"
"type": "string"
},
},
Line 255: Line 263:
"level",
"level",
"upcastable",
"upcastable",
"image",
"controller icon",
"conc",
"conc",
"ritual",
"ritual",

Latest revision as of 18:08, 30 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:

Name Level Cast time Duration Range/Area Attack/Save Damage/Effect
Flame Blade Flame Blade Cantrip Action
-
 {{{range}}}m / ft
 2m / 7ft (Radius)
2d6Damage TypesAcid
Blade Ward Blade Ward C Action  2 turns  Self
-
-
Firebolt? Firebolt? C Action  2 turns  Self
-
1d10Damage TypesPiercing
2d8Damage TypesFire
Ensnaring Strike Ensnaring Strike 1 Action  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.

Template parameters

ParameterDescriptionTypeStatus
spellspell

Name of the spell

Stringrequired
levellevel

The level of the spell.

Suggested values
1 2 3 4 5 6 Cantrip
Unknownoptional
upcastableupcastable

If specified, adds the upcastable marker next to the level.

Booleanoptional
controller iconcontroller icon

File name of the spell's icon.

Stringoptional
concconc

If specified, marks spell as requiring concentration.

Suggested values
required
Booleanoptional
ritualritual

If specified, marks spell as ritual.

Booleanoptional
casttimecasttime

Casting time of the Spell

Suggested values
{{Action|bonus}} {{Action|reaction}} {{Action}} +{{Action|bonus}}
Default
{{Action}}
Unknownoptional
durationduration

Duration of the spell.

Suggested values
1 2 3 10 100 longrest
Unknownoptional
rangerange

Range of the spell separated by "/".

Suggested values
self melee touch weapon 9/30
Default
18/60
Example
9/30 to get 9m/30ft.
Stringoptional
areaarea

AoE range of the spell separated by "/".

Stringoptional
aoeaoe

AoE type of the spell.

Suggested values
radius cone cube
Default
radius
Stringoptional
attackattack

Does spell require an attack roll.

Suggested values
yes no
Stringoptional
savesave

Does spell require a saving throw against its DC.

Suggested values
STR DEX CON INT WIS CHA
Stringoptional
damagedamage

Type of the damage dealt by the Spell.

Suggested values
Slashing Piercing Bludgeoning Cold Fire Acid Lightning Force Poison Thunder Radiant Necrotic Psychic
Stringoptional