Template:Spell list table row: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Template to use inside spell list table)
 
mNo edit summary
Line 29: Line 29:
| image= -> File name, auto-generated as "{{spell}} Icon.png" if not provided.
| image= -> File name, auto-generated as "{{spell}} Icon.png" if not provided.
| spell= -> Required, name of the spell
| spell= -> Required, name of the spell
| casttime= -> Default: {{Action}}
| casttime= -> {{template:Action}} Default: {{Action}}
| duration= -> {{template:Duration}} Default: Instant  
| duration= -> {{template:Duration}} Default: Instant  
| range= -> {{template:Range}} Default: melee
| range= -> {{template:Range}} Default: melee

Revision as of 10:15, 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= -> {{template:Duration}} Default: Instant 
| range= -> {{template:Range}} Default: melee
| area= -> {{template:AOE}} Default: -
| attack= -> yes or no Default: yes
| save= -> Does spell requires a saving throw against its DC, Values: DEX,STR,WIS etc. Default -
| effect= -> {{template:DamageType}} Default: -
}}

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={{AOE|radius|m=2|ft=7}}
| save=DEX
| effect={{DamageType|Acid}}
}}
{{SpellListTableRow
| spell=Blade Ward
| casttime={{action}}
| duration=2
| range={{Range|self}}
| const=required
| attack=no
}}
|}

Result:

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