Template:SpellAction: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#cargo_query: tables = spells | fields = _pageName = link, name, action_type, CONCAT("{{{recharge|}}}")=recharge, CONCAT("Cast as a level {{{level|}}} spell")=description, CONCAT("{{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp")=icon | where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | format = template | template = ClassAction/Format | named args = yes }}</inc...")
 
No edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = spells
<includeonly>{{#cargo_query: tables = spells
| fields = _pageName = link, name, action_type, CONCAT("{{{recharge|}}}")=recharge, CONCAT("Cast as a level {{{level|}}} spell")=description, CONCAT("{{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp")=icon
| fields = _pageName = link, name, action_type, CONCAT("{{{recharge|}}}")=recharge, CONCAT("{{{level|}}}")=level, CONCAT("{{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp")=icon
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}"
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}"
| format = template
| format = template

Revision as of 17:57, 4 December 2023

Use this to display a spell as a class action on an equipment page. Examples follow.

This template just runs the Cargo query; see Template:ClassAction/Format for the formatting.


Usage:

{{SpellAction | Hunter's Mark | level=1 | recharge=Long Rest }}

Result:


Hunter's Mark Hunter's Mark ()
Cast as a level 1 spell ( Recharge: Long rest.)

Usage:

{{SpellAction | Haste | level=3 | recharge=Short Rest }}

Result:


Haste Haste ()
Cast as a level 3 spell ( Recharge: Short rest.)

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
name1

The name of the spell

Stringrequired
levellevel

The level the spell is cast at.

Default
1
Numberoptional
rechargerecharge

How often this spell refreshes

Default
Stringoptional