Template:SpellAction: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: tables = spells | <includeonly>{{#cargo_query: tables = spells | ||
| fields = _pageName = link, name, action_type, description, {{#if: {{{recharge|}}} | CONCAT("{{{recharge}}}")=recharge | recharge}}, CONCAT("{{{level | | fields = _pageName = link, name, action_type, description, {{#if: {{{recharge|}}} | CONCAT("{{{recharge}}}")=recharge | recharge}}, {{#if: {{{level|}}} | CONCAT("{{{level}}}")=level | spell_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 14: | Line 14: | ||
{{Template demo | {{Template demo | ||
|<nowiki>{{SpellAction|Hunter's Mark|level=1|recharge=Long Rest}}</nowiki> | |<nowiki>{{SpellAction|Hunter's Mark|level=1|recharge=Long Rest}}</nowiki> | ||
|<nowiki>{{SpellAction| | |<nowiki>{{SpellAction|Click Heels}}</nowiki> | ||
|<nowiki>{{SpellAction|True Strike|level=0|recharge=Short Rest|action type=Bonus}}</nowiki> | |<nowiki>{{SpellAction|True Strike|level=0|recharge=Short Rest|action type=Bonus}}</nowiki> | ||
|<nowiki>{{SpellAction|Absorb Elements|recharge=Short Rest}}</nowiki> | |<nowiki>{{SpellAction|Absorb Elements|recharge=Short Rest}}</nowiki> |
Latest revision as of 20:47, 20 August 2024
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.
Examples
Markup | Renders as |
---|---|
{{SpellAction|Hunter's Mark|level=1|recharge=Long Rest}} |
|
{{SpellAction|Click Heels}} |
|
{{SpellAction|True Strike|level=0|recharge=Short Rest|action type=Bonus}} |
|
{{SpellAction|Absorb Elements|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 |