1,750
editsspell level support + change type to this is an example
mNo edit summary |
(spell level support + change type to this is an example) |
||
Line 47: | Line 47: | ||
{{#ifeq: {{#lvar: hasaction}} | 1 | | {{#ifeq: {{#lvar: hasaction}} | 1 | | ||
<dt> Cost: | <dt> Cost: | ||
<dd> {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#ifexpr: {{#lvar: ar}} > 0|{{R|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}} | <dd> {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#if: {{{level|}}} | | ||
}} | {{#switch: {{{level}}} | ||
| cantrip = | |||
| #default = {{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot | |||
}} | {{#ifexpr: {{#lvar: ar}} > 0|{{R|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}} | |||
}}<!-- End if/if not level spell --> | |||
}} <!-- End if/if not hasaction --> | |||
}}{{#if: {{{damage|}}} {{{damage2|}}} | | }}{{#if: {{{damage|}}} {{{damage2|}}} | | ||
<dt> Damage: | <dt> Damage: | ||
Line 193: | Line 198: | ||
{{{notes}}} | {{{notes}}} | ||
</div>| {{blank}}}}}} | </div>| {{blank}}}}}} | ||
<!-- CATEGORIES -->{{#ifeq: {{ | <!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} || | ||
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | {{#if: {{{level|}}} | [[Category:Spells]] {{#ifeq: {{{level}}} | cantrip | [[Category:Cantrips]] | [[Category:Level {{{level}}} Spells]] }} {{#if: {{{school|}}} | [[Category:{{{school}}} Spells]]}} {{#if: {{{ritual|}}} | [[Category:Ritual Spells]]}} | ||
{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Reactions]] | |||
|{{#ifeq: {{#lvar: action}} | 1 |<!--Spells aren't included in Actions--> | |||
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus Actions]] | |||
| [[Category:Passive Features]] | |||
}} | |||
|}} | |||
|}} | |||
|{{#ifeq: {{#lvar: hasclasslearn}} | 1 | |||
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]] | |{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]] | ||
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]] | |{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]] | ||
Line 213: | Line 226: | ||
}} <!-- End if race can learn --> | }} <!-- End if race can learn --> | ||
}}<!-- End if class can learn --> | }}<!-- End if class can learn --> | ||
}}<!-- End if is a spell --> | |||
}}<!-- End if type is not none --> | }}<!-- End if type is not none --> | ||
</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | </includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | ||
Line 219: | Line 233: | ||
<pre> | <pre> | ||
{{User:MetalPlateMage/ActionTemplate | {{User:MetalPlateMage/ActionTemplate | ||
| | | this is an example = | ||
| summary = | | summary = | ||
| description = | | description = | ||
Line 256: | Line 270: | ||
! Usage | ! Usage | ||
|- | |- | ||
| {{C| | | {{C|this is an example}} | ||
| | | If this is an example and you don't want the page to be categorized and related. | ||
| <code>this is an example =</code> | |||
<code>this is an example = OF COURSE!</code> | |||
|- | |- | ||
| {{C|summary}} | | {{C|summary}} | ||
Line 349: | Line 363: | ||
=Example= | =Example= | ||
<pre>{{User:MetalPlateMage/ActionTemplate | <pre>{{User:MetalPlateMage/ActionTemplate | ||
| | | this is an example = yes | ||
| description = abc | | description = abc | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
Line 369: | Line 383: | ||
}}</pre> | }}</pre> | ||
{{User:MetalPlateMage/ActionTemplate | {{User:MetalPlateMage/ActionTemplate | ||
| | | this is an example = yes | ||
| description = abc | | description = abc | ||
| image = Fly Icon.png | | image = Fly Icon.png |