Template:Spell page: Difference between revisions

Jump to navigation Jump to search
'action type' and 'no spell slot' no longer used in favor of cost field
(Fixed name bug)
('action type' and 'no spell slot' no longer used in favor of cost field)
Line 22: Line 22:
<dt> Cost:</dt>
<dt> Cost:</dt>
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}}</dd>
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}}</dd>
| <dt> Cost:</dt>
<dd> {{action
    | {{{action type}}}
    }} {{#if: {{{no spell slot|}}}
        | <!-- nothing -->
        | {{#switch: {{{level}}}
          | cantrip =
          | #default = + {{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot
          }}
        }}</dd>
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
<dt> Cost on hit:</dt>
Line 259: Line 249:
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| description = {{{description|}}}
| action_type = {{{action type|{{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
<!-- A little logic to try to make sure the list of classes only contains unique values. -->
<!-- A little logic to try to make sure the list of classes only contains unique values. -->

Navigation menu