Ad placeholder

Template:Action page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 14: Line 14:
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost: </dt>
<dt> Cost: </dt>
<dd> {{InfoBlob|{{Resource|{{{cost}}}|{{{cost amount|1}}}}}}} {{#if: {{{cost2|}}} | + {{InfoBlob|{{Resource|{{{cost2}}}|{{{cost2 amount|1}}}}}}}}} {{#if: {{{cost3|}}} | + {{InfoBlob|{{Resource|{{{cost3}}}|{{{cost3 amount|1}}}}}}} </dd>{{Resource/category|{{{cost}}}}}{{Resource/category|{{{cost2|}}}}}{{Resource/category|{{{cost3|}}}}}
<dd> {{InfoBlob|{{Resource|{{{cost}}}|{{{cost amount|1}}}}}}} {{#if: {{{cost2|}}} | + {{InfoBlob|{{Resource|{{{cost2}}}|{{{cost2 amount|1}}}}}}}}} {{#if: {{{cost3|}}} | + {{InfoBlob|{{Resource|{{{cost3}}}|{{{cost3 amount|1}}}}}}}}} </dd>{{Resource/category|{{{cost}}}}}{{Resource/category|{{{cost2|}}}}}{{Resource/category|{{{cost3|}}}}}
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit: </dt>
<dt> Cost on hit: </dt>
Line 220: Line 220:
}}
}}
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#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: hasclasslearn}} | 1 | [[Category:Class features]]}}
  {{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Reactions]]
{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Free actions]]
{{#if: {{{cost|}}} | | [[Category:Actions with no cost]]}}
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus actions]]
|{{#ifeq: {{#lvar: action}} | 1 |<!--Spells aren't included in Actions-->
| [[Category:Passive features]]
}}
}}
|}}
|}}
|{{#ifeq: {{#lvar: hasclasslearn}} | 1
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class actions]][[Category:Reactions]]
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Class actions]][[Category:Free actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Class actions]][[Category:Bonus actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class actions]][[Category:Actions]]
| [[Category:Class actions]][[Category:Passive features]]  
}}
}}
|}}
|}}
|{{#ifeq: {{#lvar: hasracelearn}} | 1
  |{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Racial action]][[Category:Reactions]]
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Racial action]][[Category:Free actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Racial action]][[Category:Bonus actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial action]][[Category:Actions]]
| [[Category:Racial action]][[Category:Passive features]]
}}
}}
        }}
  |}}
|
}}<!-- End if race 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>
</includeonly><noinclude>
{{/doc}}
{{/doc}}
</noinclude>
</noinclude>

Navigation menu