Template:Spell list table row: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
(Added description)
Line 50: Line 50:
</pre>
</pre>
Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns.
Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns.
<templatedata>
{
"params": {
"image": {
"description": "File name, auto-generated as \"{{spell}} Icon.png\" if not provided.",
"type": "string"
},
"spell": {
"description": "Name of the spell",
"required": true,
"type": "string"
},
"conc": {
"description": "Does spell require concentration.",
"type": "string",
"suggestedvalues": [
"required"
]
},
"casttime": {
"description": "Casting time of the Spell",
"type": "wiki-template-name",
"default": "{{Action}}"
},
"duration": {
"description": " Duration of the spell.",
"suggestedvalues": [
"1",
"2",
"3",
"10",
"longrest"
]
},
"range": {
"description": "Range of the spell separated by \"/\".",
"example": "9/30 to get 9m/30ft.",
"default": "1.5/5",
"type": "string"
},
"area": {
"description": "AoE range of the spell separated by \"/\".",
"type": "string"
},
"aoe": {
"description": "AoE type of the spell.",
"type": "string",
"suggestedvalues": [
"radius",
"cone",
"cube"
],
"default": "radius"
},
"attack": {
"description": "Does spell require an attack roll.",
"type": "string",
"suggestedvalues": [
"yes",
"no"
]
},
"save": {
"description": "Does spell require a saving throw against its DC.",
"suggestedvalues": [
"STR",
"DEX",
"CON",
"INT",
"WIS",
"CHA"
],
"type": "string"
},
"damage": {
"description": "Type of the damage dealt by the Spell.",
"suggestedvalues": [
"Fire",
"Poison",
"Acid",
"Cold"
],
"type": "string"
}
},
"description": "Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns."
}
</templatedata>


Example:
Example:

Revision as of 00:09, 14 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.

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

Template parameters

ParameterDescriptionTypeStatus
imageimage

File name, auto-generated as "{{spell}} Icon.png" if not provided.

Stringoptional
spellspell

Name of the spell

Stringrequired
concconc

Does spell require concentration.

Suggested values
required
Stringoptional
casttimecasttime

Casting time of the Spell

Default
{{Action}}
Templateoptional
durationduration

Duration of the spell.

Suggested values
1 2 3 10 longrest
Unknownoptional
rangerange

Range of the spell separated by "/".

Default
1.5/5
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
Fire Poison Acid Cold
Stringoptional

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 - -