Template:Spell list table row: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Changed the way that range and aoe values are handled)
No edit summary
Line 4: Line 4:
   | [[File:{{{image}}}|frameless|upright=0.1|link=Acid Splash]]
   | [[File:{{{image}}}|frameless|upright=0.1|link=Acid Splash]]
   | [[File:{{{spell}}} Icon.png|frameless|upright=0.1|link={{{spell}}}]]
   | [[File:{{{spell}}} Icon.png|frameless|upright=0.1|link={{{spell}}}]]
   }} [[{{{ spell }}}]] {{#ifeq: {{{const|}}} | required | {{SmallIcon|Concentration Icons.png|link=Concentration}} | }}</td>
   }} [[{{{ spell }}}]] {{#ifeq: {{{conc|}}} | required | {{SmallIcon|Concentration Icons.png|link=Concentration}} | }}</td>


   <td>{{{ casttime | {{Action}} }}}</td>
   <td>{{{ casttime | {{Action}} }}}</td>
Line 15: Line 15:


   <td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}}
   <td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}}
     | {{!}} = 1.5m / 5ft
     | {{!}} = 18m / 60ft
     | self
     | self
     | Self = Self
     | Self = Self
Line 46: Line 46:
| save= -> Does spell require a saving throw against its DC, Values: DEX,STR,WIS etc.
| save= -> Does spell require a saving throw against its DC, Values: DEX,STR,WIS etc.
| damage= -> Damage type
| damage= -> Damage type
| conc= -> Does spell require concentration. required or empty
}}
}}
</pre>
</pre>
Line 72: Line 73:
| duration=2
| duration=2
| range=self
| range=self
| const=required
| conc=required
| attack=no
| attack=no
| range=self
| range=self
Line 101: Line 102:
| duration=2
| duration=2
| range=self
| range=self
| const=required
| conc=required
| attack=no
| attack=no
| range=self
| range=self

Revision as of 23:30, 13 July 2023



{{SpellListTableRow
| image= -> File name, auto-generated as "{{spell}} Icon.png" if not provided.
| spell= -> Required, name of the spell
| casttime= -> {{template:Action}} Default: {{Action}}
| duration= -> Duration of the spell. Values: [any number, longrest]
| range= -> Range of the spell separated by "/". Ex: 9/30 becomes 9m/30ft. Default: 1.5/5
| area= -> AoE range of the spell separated by "/". Ex: 1.5/5 becomes 1.5m/5ft
| aoe= -> AoE type of the spell. Values: [radius, cone, cube]. Default: radius
| attack= -> Does spell require an attack roll. Values: [yes, no]. Default: yes
| save= -> Does spell require a saving throw against its DC, Values: DEX,STR,WIS etc.
| damage= -> Damage type
| conc= -> Does spell require concentration. required or empty
}}

Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns.

Example:

{| class=wikitable style="width: 100%;"
! | Name
! | Casting Time
! | Duration
! | Range / Area
! | Attack / Save
! | Damage / Effect
|-
{{SpellListTableRow
| image=Acid Splash Icon 2.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
| range=self
}}
|}

Result:

Name Casting Time Duration Range / Area Attack / Save Damage / Effect
File:Acid Splash Icon 2.png Acid Splash Action -  18m / 60ft
 2m / 7ft (Radius)
Attack roll
Dexterity saving throw
Damage TypesAcid
Blade Ward Icon.png Blade Ward Concentration Action  2 turns  Self - -