Template:SpellAction: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) No edit summary |
(added option to alter action type) |
||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: tables = spells | <includeonly>{{#cargo_query: tables = spells | ||
| 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 | | 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, {{#if: {{{action type|}}} | CONCAT("{{{action type|}}}")=action type }} | ||
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | | where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | ||
| format = template | | format = template | ||
Line 33: | Line 33: | ||
{{SpellAction | Haste | level=3 | recharge=Short Rest }} | {{SpellAction | Haste | level=3 | recharge=Short Rest }} | ||
---- | |||
Usage: | |||
<pre> | |||
{{SpellAction | True Strike | level=0 | recharge=Short Rest | action type=Bonus }} | |||
</pre> | |||
Result: | |||
{{SpellAction | True Strike | level=0 | recharge=Short Rest | action type=Bonus }} | |||
[[Category:Templates]] | [[Category:Templates]] |
Revision as of 18:41, 29 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 ()
- Cast as a level 1 spell ( Recharge: Long rest.)
Usage:
{{SpellAction | Haste | level=3 | recharge=Short Rest }}
Result:
- Haste ()
- Cast as a level 3 spell ( Recharge: Short rest.)
Usage:
{{SpellAction | True Strike | level=0 | recharge=Short Rest | action type=Bonus }}
Result:
- True Strike ()
- Cast as a cantrip ( Recharge: Short rest.)
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | The name of the spell | String | required |
level | level | The level the spell is cast at.
| Number | optional |
recharge | recharge | How often this spell refreshes
| String | optional |