Difference between revisions of "Template:SpeciesStats"

From Cassette Beasts
(Fix move slots range not being compressed if upper and lower values are the same)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table class="datatable">
+
=== Base Form Stats ===
<tr><th colspan="2">Base Form Stats</th></tr>
+
<table class="datatable wikitable">
<tr><th>Max HP</th><td>{{SpeciesStatBar|value={{{max_hp|50}}}|max_value=200}}</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. Atk</th><td>{{SpeciesStatBar|value={{{melee_attack|50}}}|max_value=200}}</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>M. Def</th><td>{{SpeciesStatBar|value={{{melee_defense|50}}}|max_value=200}}</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. Atk</th><td>{{SpeciesStatBar|value={{{ranged_attack|50}}}|max_value=200}}</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>R. Def</th><td>{{SpeciesStatBar|value={{{ranged_defense|50}}}|max_value=200}}</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={{{speed|50}}}|max_value=200}}</td></tr>
+
<tr><th>Speed</th><td>{{SpeciesStatBar|value={{#invoke:Database|get_species|{{{id}}}|stats|speed}}|max_value=300}}</td></tr>
 
</table>
 
</table>
  
<table class="datatable">
+
=== Additional Stats ===
<tr><th colspan="2">Additional Stats</th></tr>
+
<table class="wikitable datatable">
<tr><th>Max AP</td><td>{{{max_ap|5}}}</td></tr>
+
<tr><th>Max&nbsp;AP</th><td>{{#invoke:Database|get_species|{{{id}}}|stats|max_ap}} / 10</td></tr>
<tr><th>Move Slots</th><td>{{{move_slots|4}}}</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>
<tr><th>Recording Rate</th><td>{{{record_rate|50}}}</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