Template:Action page: Difference between revisions

Jump to navigation Jump to search
Removing deprecated cost fields and marking them with a category
(Use bullet list for granted by items)
(Removing deprecated cost fields and marking them with a category)
Line 9: Line 9:
<h2> Description </h2>
<h2> Description </h2>
{{{description}}}
{{{description}}}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{cost2|}}}{{{cost3|}}}{{{hit cost|}}}{{{hit cost2|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{hit cost|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost: </dt>
<dt> Cost: </dt>
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}|{{{cost amount|1}}}}}}} {{#if: {{{cost2|}}} | + {{InfoBlob|{{Resource|{{{cost2}}}|{{{cost2 amount|1}}}}}}}}} {{#if: {{{cost3|}}} | + {{InfoBlob|{{Resource|{{{cost3}}}|{{{cost3 amount|1}}}}}}}}} </dd>{{#ifeq: {{{this is an example|}}} ||{{Resource/category|{{{cost}}}}}{{Resource/category|{{{cost2|}}}}}{{Resource/category|{{{cost3|}}}}}}}
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit: </dt>
<dt> Cost on hit: </dt>
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}|{{{hit cost amount|1}}}}}}} {{#if: {{{hit cost2|}}} | + {{InfoBlob|{{Resource|{{{hit cost2}}}|{{{hit cost2 amount|1}}}}}}}}} </dd>
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
}} {{#if: {{{damage|}}} |
}} {{#if: {{{damage|}}} |
<dt> Damage: </dt>
<dt> Damage: </dt>
Line 230: Line 230:
{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}
{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}
[[Category:Class actions]]
[[Category:Class actions]]
{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount}}} | [[Category:Pages using deprecated parameters]]}}
}}<!-- End if type is not none -->
}}<!-- End if type is not none -->
</includeonly><noinclude>
</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Navigation menu