Difference between revisions of "Template:SpeciesStats"

From Cassette Beasts
(Fix move slots range not being compressed if upper and lower values are the same)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table>
+
=== Base Form Stats ===
<tr><th>Max HP</th><td>{{SpeciesStatBar|value={{{max_hp}}}|max_value=200}}{{{max_hp}}}</td></tr>
+
<table class="datatable wikitable">
<tr><th>M. Atk</th><td>{{SpeciesStatBar|value={{{melee_attack}}}|max_value=200}}{{{melee_attack}}}</td></tr>
+
<tr><th>Max&nbsp;HP</th><td style="width: 400px; min-width: 100%">{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|max_hp}}|max_value=300}}</td></tr>
<tr><th>M. Def</th><td>{{SpeciesStatBar|value={{{melee_defense}}}|max_value=200}}{{{melee_defense}}}</td></tr>
+
<tr><th>M.&nbsp;Atk</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|melee_attack}}|max_value=300}}</td></tr>
<tr><th>R. Atk</th><td>{{SpeciesStatBar|value={{{ranged_attack}}}|max_value=200}}{{{ranged_attack}}}</td></tr>
+
<tr><th>M.&nbsp;Def</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|melee_defense}}|max_value=300}}</td></tr>
<tr><th>R. Def</th><td>{{SpeciesStatBar|value={{{ranged_defense}}}|max_value=200}}{{{ranged_defense}}}</td></tr>
+
<tr><th>R.&nbsp;Atk</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|ranged_attack}}|max_value=300}}</td></tr>
<tr><th>Speed</th><td>{{SpeciesStatBar|value={{{speed}}}|max_value=200}}{{{speed}}</td></tr>
+
<tr><th>R.&nbsp;Def</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|ranged_defense}}|max_value=300}}</td></tr>
 +
<tr><th>Speed</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|speed}}|max_value=300}}</td></tr>
 
</table>
 
</table>
<table>
+
 
<tr><th>Max AP</td><td>{{{max_ap}}}</td></tr>
+
=== Additional Stats ===
<tr><th>Move Slots</th><td>{{{move_slots}}}</td></tr>
+
<table class="wikitable datatable">
<tr><th>Recording Rate</th><td>{{{record_rate}}}</td></tr>
+
<tr><th>Max&nbsp;AP</th><td>{{#invoke:Database|get_species|{{{id}}}|stats|max_ap}} / 10</td></tr>
 +
<tr><th>Move&nbsp;Slots</th><td>{{#ifeq:{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}}|{{SpeciesMaxMoveSlots|{{{id}}}}}|{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}}|{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}} to {{SpeciesMaxMoveSlots|{{{id}}}}}}} / 8</td></tr>
 
</table>
 
</table>

Latest revision as of 16:38, 6 October 2023

Base Form Stats

Max HP
0
M. Atk
0
M. Def
0
R. Atk
0
R. Def
0
Speed
0

Additional Stats

Max AP0 / 10
Move Slots0 to Unknown / 8