Template:StatTable: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <templatestyles src="Template:StatTable/styles.css" /> | ||
{| | |||
<!-- | |||
| | Usage: | ||
| | {{StatTable | ||
| type = Grass <!-- primary type for the total row colour *optional* --> | |||
| HP = 80 | |||
| Attack = 82 | |||
| Defense= 83 | |||
| SpAtk = 100 | |||
| SpDef = 100 | |||
| Speed = 80 | |||
| Total = 525 <!-- optional; auto-calculated if omitted --> | |||
}} | |||
--> | |||
{| class="stat-chart" | |||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="lbl hp" | HP: | ||
| {{{ | | class="num" | {{{HP|N/A}}} | ||
| style="width:{{# | | class="bar-cell" | <span class="bar hp" style="width: {{#expr: min({{{HP|0}}}, 255)}}px;"></span> | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="lbl atk" | Attack: | ||
| {{{ | | class="num" | {{{Attack|N/A}}} | ||
| style="width:{{# | | class="bar-cell" | <span class="bar atk" style="width: {{#expr: min({{{Attack|0}}}, 255)}}px;"></span> | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="lbl def" | Defense: | ||
| {{{ | | class="num" | {{{Defense|N/A}}} | ||
| style="width:{{# | | class="bar-cell" | <span class="bar def" style="width: {{#expr: min({{{Defense|0}}}, 255)}}px;"></span> | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="lbl spa" | Sp. Atk: | ||
| {{{ | | class="num" | {{{SpAtk|N/A}}} | ||
| style="width:{{# | | class="bar-cell" | <span class="bar spa" style="width: {{#expr: min({{{SpAtk|0}}}, 255)}}px;"></span> | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="lbl spd" | Sp. Def: | ||
| {{{ | | class="num" | {{{SpDef|N/A}}} | ||
| style="width:{{# | | class="bar-cell" | <span class="bar spd" style="width: {{#expr: min({{{SpDef|0}}}, 255)}}px;"></span> | ||
|- | |||
! scope="row" class="lbl spe" | Speed: | |||
| class="num" | {{{Speed|N/A}}} | |||
| class="bar-cell" | <span class="bar spe" style="width: {{#expr: min({{{Speed|0}}}, 255)}}px;"></span> | |||
|- | |- | ||
! class="total" | Total: | ! class="total" | Total: | ||
| {{ | | colspan="2" class="total-val" style="background:#{{{{{type|Normal}}} color light}};" | | ||
{{#if:{{{Total|}}}|{{{Total}}}|{{#expr: {{{HP|0}}}+{{{Attack|0}}}+{{{Defense|0}}}+{{{SpAtk|0}}}+{{{SpDef|0}}}+{{{Speed|0}}} }} }} | |||
|} | |} | ||
Revision as of 02:56, 19 May 2025
| HP = 80 | Attack = 82 | Defense= 83 | SpAtk = 100 | SpDef = 100 | Speed = 80 | Total = 525
}} -->
| HP: | N/A | <span class="bar hp" style="width: Expression error: Unrecognized word "min".px;"> |
|---|---|---|
| Attack: | N/A | <span class="bar atk" style="width: Expression error: Unrecognized word "min".px;"> |
| Defense: | N/A | <span class="bar def" style="width: Expression error: Unrecognized word "min".px;"> |
| Sp. Atk: | N/A | <span class="bar spa" style="width: Expression error: Unrecognized word "min".px;"> |
| Sp. Def: | N/A | <span class="bar spd" style="width: Expression error: Unrecognized word "min".px;"> |
| Speed: | N/A | <span class="bar spe" style="width: Expression error: Unrecognized word "min".px;"> |
| Total: |
0 | |