Template:Spell action: Difference between revisions
Jump to navigation
Jump to search
added option to alter action type |
Switched from action_type to cost and hit_cost |
||
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: tables = spells | <includeonly>{{#cargo_query: tables = spells | ||
| fields = _pageName = link, name, | | fields = _pageName = link, name, cost, hit_cost, description, {{#if: {{{recharge|}}} | CONCAT("{{{recharge}}}")=recharge | recharge}}, {{#if: {{{level|}}} | CONCAT("{{{level}}}")=level | spell_level=level}}, controller_icon=icon | ||
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | | where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | ||
| format = template | | format = template | ||
| template = | | template = Spell action/format | ||
| named args = yes | | named args = yes | ||
}}</includeonly><noinclude> | | default = [[{{{1}}}]]{{Main namespace only|[[Category:Pages with unknown abilities]]}} | ||
}}</includeonly><noinclude>{{Documentation|content= | |||
Use this to display a spell as a class action on an equipment page. Examples follow. | 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: | This template just runs the Cargo query; see [[Template:Spell action/format]] for the formatting. | ||
== Examples == | |||
{{Template demo | |||
|<nowiki>{{SpellAction|Hunter's Mark|level=1|recharge=Long Rest}}</nowiki> | |||
|<nowiki>{{SpellAction|Click Heels}}</nowiki> | |||
|<nowiki>{{SpellAction|True Strike|level=0|recharge=Short Rest|action type=Bonus}}</nowiki> | |||
|<nowiki>{{SpellAction|Absorb Elements|recharge=Short Rest}}</nowiki> | |||
}} | |||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 77: | Line 47: | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Cargo templates]] | |||
</noinclude> |
Latest revision as of 00:00, 28 January 2025
Template documentation
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:Spell action/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 |