Template:BTD6 ability: Difference between revisions

Added ability charges parameter
Changed to additional charges for consistency
 
Line 4: Line 4:
-->{{#if:{{{interval|}}}{{{interval after|}}}|<tr><th>Interval</th><td>{{{interval|0}}}s {{#if:{{{interval after|}}}|→ {{{interval after|}}}s}}</td></tr>
-->{{#if:{{{interval|}}}{{{interval after|}}}|<tr><th>Interval</th><td>{{{interval|0}}}s {{#if:{{{interval after|}}}|→ {{{interval after|}}}s}}</td></tr>
|{{#ifexpr:({{{cooldown|0}}} > 0 or {{{cooldown after|0}}} > 0) and ({{{cooldown|0}}} < 99999)|<tr><th>Cooldown</th><td>{{{cooldown|0}}}s {{#if:{{{cooldown after|}}}|→ {{{cooldown after|}}}s}}</td></tr>}}}}<!--
|{{#ifexpr:({{{cooldown|0}}} > 0 or {{{cooldown after|0}}} > 0) and ({{{cooldown|0}}} < 99999)|<tr><th>Cooldown</th><td>{{{cooldown|0}}}s {{#if:{{{cooldown after|}}}|→ {{{cooldown after|}}}s}}</td></tr>}}}}<!--
-->{{#ifexpr:({{{charges|1}}} > 1 or {{{charges after|1}}} > 1)|<tr><th>Ability charges</th><td>{{{maxCharges|1}}} {{#if:{{{charges after|1}}}|→ {{{charges after|1}}}}}</td></tr>}}<!--
-->{{#ifexpr:({{{additionalCharges|0}}} > 0 or {{{additionalCharges after|0}}} > 0)|<tr><th>Ability charges</th><td>{{#expr:{{{additionalCharges|0}}}+1}} {{#if:{{{additionalCharges after|}}}|→ {{#expr:{{{additionalCharges after|0}}}+1}}}}</td></tr>}}<!--
-->{{#ifexpr:({{{maxActivationsPerRound|0}}} > 0 or {{{maxActivationsPerRound after|0}}} > 0) and ({{{maxActivationsPerRound|0}}} < 99999)|<tr><th>Max uses per round</th><td>{{{maxActivationsPerRound|0}}} {{#if:{{{maxActivationsPerRound after|}}}|→ {{{maxActivationsPerRound after|}}}}}</td></tr>}}<!--
-->{{#ifexpr:({{{maxActivationsPerRound|0}}} > 0 or {{{maxActivationsPerRound after|0}}} > 0) and ({{{maxActivationsPerRound|0}}} < 99999)|<tr><th>Max uses per round</th><td>{{{maxActivationsPerRound|0}}} {{#if:{{{maxActivationsPerRound after|}}}|→ {{{maxActivationsPerRound after|}}}}}</td></tr>}}<!--
-->{{#ifexpr:({{{lifespan|0}}} > 0 or {{{lifespan after|0}}} > 0) and ({{{lifespan|0}}} < 99999)|<tr><th>Lifespan</th><td>{{{lifespan|0}}}s {{#if:{{{lifespan after|}}}|→ {{{lifespan after|}}}s}}</td></tr>}}<!--
-->{{#ifexpr:({{{lifespan|0}}} > 0 or {{{lifespan after|0}}} > 0) and ({{{lifespan|0}}} < 99999)|<tr><th>Lifespan</th><td>{{{lifespan|0}}}s {{#if:{{{lifespan after|}}}|→ {{{lifespan after|}}}s}}</td></tr>}}<!--