Template:Spell list table row: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 20: Line 20:
     | #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}}} | {{{aoe}}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }}
     | <br>{{SmallIcon|Aoe Icon.png}}{{nbts}}{{#explode: {{{area}}} |/|0 }}m / {{#explode: {{{area}}} |/|1 }}ft {{#switch: {{{aoe|{{!}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }}
     |  
     |  
   }}</td>
   }}</td>

Revision as of 23:19, 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 - -