Difference between revisions of "Template:MoveInfobox"

From Cassette Beasts
(Created page with "<div class="infobox"> <div class="infobox-head"> <div class="infobox-title">{{#invoke:Database|get_move|{{{id}}}|name}}</div> <div class="infobox-subtitle">{{#invoke:Database|...")
 
Line 6: Line 6:
 
<div class="infobox-body">
 
<div class="infobox-body">
 
<div class="infobox-data"><table><tr><th>Type</th><td>{{TypeButton|{{#invoke:Database|get_move|{{{id}}}|elemental_type}}}}</td></tr>
 
<div class="infobox-data"><table><tr><th>Type</th><td>{{TypeButton|{{#invoke:Database|get_move|{{{id}}}|elemental_type}}}}</td></tr>
<tr><th>Power</th><td>{{#invoke:Database|get_move|{{{id}}}|power|if_0=&#8212;}}</td></tr>
+
{{#if: {{#invoke:Database|get_move|{{{id}}}|power|if_0=}} |
 +
<tr><th>Power</th><td>{{#invoke:Database|get_move|{{{id}}}|power|if_0=&#8212;}}</td></tr> |}}
 
<tr><th>Accuracy</th><td>{{#invoke:Database|get_move|{{{id}}}|accuracy|if_number=%d%%}}</td></tr>
 
<tr><th>Accuracy</th><td>{{#invoke:Database|get_move|{{{id}}}|accuracy|if_number=%d%%}}</td></tr>
<tr><th>Targets</th><td>{{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=None|if_TARGET_ONE=Single|if_TARGET_TEAM=Team|if_TARGET_ALL=All|if_TARGET_ONE_ALLY=Single Ally|if_TARGET_ONE_ALLY_NOT_SELF=Single Ally (Not Self)|if_TARGET_ONE_ENEMY=One Enemy|if_TARGET_ALL_NOT_SELF=All Except Self}}</td></tr>
+
{{#if: {{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=}} |
 +
<tr><th>Targets</th><td>{{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=None|if_TARGET_ONE=Single|if_TARGET_TEAM=Team|if_TARGET_ALL=All|if_TARGET_ONE_ALLY=Single Ally|if_TARGET_ONE_ALLY_NOT_SELF=Single Ally (Not Self)|if_TARGET_ONE_ENEMY=One Enemy|if_TARGET_ALL_NOT_SELF=All Except Self}}</td></tr> |}}
 
<tr><th>Use Cost</th><td>{{#if: {{#invoke:Database|get_move|{{{id}}}|is_passive_only}} | Passive | {{#invoke:Database|get_move|{{{id}}}|ap_cost}} AP}}</td></tr>
 
<tr><th>Use Cost</th><td>{{#if: {{#invoke:Database|get_move|{{{id}}}|is_passive_only}} | Passive | {{#invoke:Database|get_move|{{{id}}}|ap_cost}} AP}}</td></tr>
 
<tr><th>Copyable</th><td>{{#invoke:Database|get_move|{{{id}}}|can_be_copied|if_true=Yes|if_false=No}}</td></tr>
 
<tr><th>Copyable</th><td>{{#invoke:Database|get_move|{{{id}}}|can_be_copied|if_true=Yes|if_false=No}}</td></tr>
 
<tr><th>Priority</th><td>{{#ifexpr: {{#invoke:Database|get_move|{{{id}}}|priority}} > 0 | Raised | {{#ifexpr: {{#invoke:Database|get_move|{{{id}}}|priority}} < 0 | Lowered | Normal }} }} ({{#invoke:Database|get_move|{{{id}}}|priority}})</td></tr>
 
<tr><th>Priority</th><td>{{#ifexpr: {{#invoke:Database|get_move|{{{id}}}|priority}} > 0 | Raised | {{#ifexpr: {{#invoke:Database|get_move|{{{id}}}|priority}} < 0 | Lowered | Normal }} }} ({{#invoke:Database|get_move|{{{id}}}|priority}})</td></tr>
 
</table></div></div></div>
 
</table></div></div></div>

Revision as of 11:15, 25 May 2022

Unknown
Miscellaneous
Type
Accuracy100%
TargetsSingle
Use Cost0 AP
CopyableYes
PriorityNormal (0)