Template:StatTable: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <templatemessagelocal> | ||
{| class="pkmn-stats" | |||
! scope="row" class="hp" | HP: | |||
| {{{HP|N/A}}} | |||
| style="width:{{#expr: {{{HP|0}}} > 255 ? 255 : {{{HP|0}}} }}px" | | |||
}} | |||
{| | |||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="atk" | Attack: | ||
| {{{Attack|N/A}}} | |||
| | | style="width:{{#expr: {{{Attack|0}}} > 255 ? 255 : {{{Attack|0}}} }}px" | | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="def" | Defense: | ||
| {{{Defense|N/A}}} | |||
| | | style="width:{{#expr: {{{Defense|0}}} > 255 ? 255 : {{{Defense|0}}} }}px" | | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="spa" | Sp. Atk: | ||
| {{{SpAtk|N/A}}} | |||
| | | style="width:{{#expr: {{{SpAtk|0}}} > 255 ? 255 : {{{SpAtk|0}}} }}px" | | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="spd" | Sp. Def: | ||
| {{{SpDef|N/A}}} | |||
| | | style="width:{{#expr: {{{SpDef|0}}} > 255 ? 255 : {{{SpDef|0}}} }}px" | | ||
|- | |- | ||
! scope="row" class=" | ! scope="row" class="spe" | Speed: | ||
| {{{Speed|N/A}}} | |||
| | | style="width:{{#expr: {{{Speed|0}}} > 255 ? 255 : {{{Speed|0}}} }}px" | | ||
|- | |- | ||
! class="total" | Total: | ! class="total" | Total: | ||
| | | {{#if:{{{Total|}}}|{{{Total}}}|{{#expr: | ||
({{{HP|0}}}) + | |||
({{{Attack|0}}}) + | |||
({{{Defense|0}}}) + | |||
({{{SpAtk|0}}}) + | |||
({{{SpDef|0}}}) + | |||
({{{Speed|0}}}) | |||
}} }} | |||
|} | |} | ||
</templatemessagelocal> | |||
<noinclude> | |||
Adds a coloured Bulbapedia-style base-stat chart. | |||
**Parameters** | |||
* `HP Attack Defense SpAtk SpDef Speed` – numbers (or omit ⇒ “N/A”) | |||
* `Total` (optional) – total shown; if omitted it’s auto-calculated | |||
</noinclude> | |||
Revision as of 03:40, 19 May 2025
<templatemessagelocal>
| HP: | N/A | |
|---|---|---|
| Attack: | N/A | |
| Defense: | N/A | |
| Sp. Atk: | N/A | |
| Sp. Def: | N/A | |
| Speed: | N/A | |
| Total: | 0 |
</templatemessagelocal>
Adds a coloured Bulbapedia-style base-stat chart.
- Parameters**
- `HP Attack Defense SpAtk SpDef Speed` – numbers (or omit ⇒ “N/A”)
- `Total` (optional) – total shown; if omitted it’s auto-calculated