Ad placeholder

Template:Spell action: Difference between revisions

Jump to navigation Jump to search
Updated doc
(added option to alter action type)
(Updated doc)
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, {{#if: {{{action type|}}} | CONCAT("{{{action type|}}}")=action type }}
| fields = _pageName = link, name, action_type, description, 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 10: Line 10:
This template just runs the Cargo query; see [[Template:ClassAction/Format]] for the formatting.
This template just runs the Cargo query; see [[Template:ClassAction/Format]] for the formatting.


----


Usage:
== Examples ==
 
{{Template demo
<pre>
|<nowiki>{{SpellAction|Hunter's Mark|level=1|recharge=Long Rest}}</nowiki>
{{SpellAction | Hunter's Mark | level=1 | recharge=Long Rest }}
|<nowiki>{{SpellAction|Haste|level=3|recharge=Short Rest}}</nowiki>
</pre>
|<nowiki>{{SpellAction|True Strike|level=0|recharge=Short Rest|action type=Bonus}}</nowiki>
 
|<nowiki>{{SpellAction|Absorb Elements|recharge=Short Rest}}</nowiki>
Result:
}}
 
{{SpellAction | Hunter's Mark | level=1 | recharge=Long Rest }}
 
----
 
Usage:
 
<pre>
{{SpellAction | Haste | level=3 | recharge=Short Rest }}
</pre>
 
Result:
 
{{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]]

Navigation menu