Differenze tra le versioni di "Template:Stats"

Code update e mobile friendly
(Modulo colore)
(Code update e mobile friendly)
{| align="center" class="roundy pull-center" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}}}}; border: 3px solid #{{#invoke: colore | {{{tipo2|{{{tipo|sconosciuto}}}}}} | {{#ifeq: {{{tipo2|{{{tipo|sconosciuto}}}}}} | {{{tipo|sconosciuto}}} | dark | light}}}}"
|-
! class="roundytl" rowspan="2" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; {{roundytl|10px}}" | Statistica
! class="roundytr" colspan="2" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; {{roundytr|10px}}" | Estensione
!|- class="small-text" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; width: 60px;" | Totale:
|-
! Al lv. 50
! style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}};" | <small>Al lv. 50</small>
! Al lv. 100
! style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}};" | <small>Al lv. 100</small>
|- style="background: #{{#invoke: colore | ps | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | ps | dark}};"><div class="inline-block" style="width: 60px;">'''PS'''</div><div class="inline-block" style="width: 30px;">'''{{{PS|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | ps}}; width: {{{PS|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#ifexpr: {{{PS|1}}} = 1 | 1 | {{#expr: ((0 + 2 * {{{PS|1}}} + (0/4)) * 50/100) + 10 + 50}}}} - {{#ifexpr: {{{PS|1}}} = 1 | 1 | {{#expr: ((31 + 2 * {{{PS|1}}} + (252/4)) * 50/100) + 10 + 50}}}}</small>
{| style="background: #{{#invoke: colore | ps}}; border: 1px solid #{{#invoke: colore | ps | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#ifexpr: {{{PS|1}}} = 1 | 1 | {{#expr: ((0 + 2 * {{{PS|1}}} + (0/4)) * 100/100) + 10 + 100}}}} - {{#ifexpr: {{{PS|1}}} = 1 | 1 | {{#expr: ((31 + 2 * {{{PS|1}}} + (252/4)) * 100/100) + 10 + 100}}}}</small>
! style="background: #{{#invoke: colore | ps | light}}; width: 60px;" | PS
! style="background: #{{#invoke: colore | ps | light}}; width: 30px;" | {{{PS|1}}}
| style="width: {{{PS|1}}}px;" |
|}
! <small>{{#ifexpr: {{{PS|1}}} = 1|1|{{#expr: ((0 + 2 * {{{PS|1}}} + (0/4)) * 50/100) + 10 + 50}}}} - {{#ifexpr: {{{PS|1}}} = 1|1|{{#expr: ((31 + 2 * {{{PS|1}}} + (252/4)) * 50/100) + 10 + 50}}}}</small>
! <small>{{#ifexpr: {{{PS|1}}} = 1|1|{{#expr: ((0 + 2 * {{{PS|1}}} + (0/4)) * 100/100) + 10 + 100}}}} - {{#ifexpr: {{{PS|1}}} = 1|1|{{#expr: ((31 + 2 * {{{PS|1}}} + (252/4)) * 100/100) + 10 + 100}}}}</small>
|- style="background: #{{#invoke: colore | attacco | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | attacco | dark}};"><div class="inline-block" style="width: 60px;">'''Attacco'''</div><div class="inline-block" style="width: 30px;">'''{{{Attacco|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | attacco}}; width: {{{Attacco|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Attacco|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attacco|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
{| style="background: #{{#invoke: colore | attacco}}; border: 1px solid #{{#invoke: colore | attacco | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Attacco|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attacco|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
! style="background: #{{#invoke: colore | attacco | light}}; width: 60px;" | Attacco
! style="background: #{{#invoke: colore | attacco | light}}; width: 30px;" | {{{Attacco|1}}}
| style="width: {{{Attacco|1}}}px;" |
|}
! <small>{{#expr: floor((((0 + 2 * {{{Attacco|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attacco|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{Attacco|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Attacco|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{#invoke: colore | difesa | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | difesa | dark}};"><div class="inline-block" style="width: 60px;">'''Difesa'''</div><div class="inline-block" style="width: 30px;">'''{{{Difesa|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | difesa}}; width: {{{Difesa|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Difesa|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Difesa|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
{| style="background: #{{#invoke: colore | difesa}}; border: 1px solid #{{#invoke: colore | difesa | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Difesa|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Difesa|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
! style="background: #{{#invoke: colore | difesa | light}}; width: 60px;" | Difesa
! style="background: #{{#invoke: colore | difesa | light}}; width: 30px;" | {{{Difesa|1}}}
| style="width: {{{Difesa|1}}}px;" |
|}
! <small>{{#expr: floor((((0 + 2 * {{{Difesa|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Difesa|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{Difesa|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Difesa|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{#invoke: colore | attacco_speciale | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | attacco_speciale | dark}};"><div class="inline-block" style="width: 60px;">'''Att. Sp.'''</div><div class="inline-block" style="width: 30px;">'''{{{AttSp|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | attacco_speciale}}; width: {{{AttSp|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{AttSp|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{AttSp|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
{| style="background: #{{#invoke: colore | attacco_speciale}}; border: 1px solid #{{#invoke: colore | attacco_speciale | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{AttSp|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{AttSp|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
! style="background: #{{#invoke: colore | attacco_speciale | light}}; width: 60px;" | Att. Sp.
! style="background: #{{#invoke: colore | attacco_speciale | light}}; width: 30px;" | {{{AttSp|1}}}
| style="width: {{{AttSp|1}}}px;" |
|}
! <small>{{#expr: floor((((0 + 2 * {{{AttSp|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{AttSp|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{AttSp|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{AttSp|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{#invoke: colore | difesa_speciale | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | difesa_speciale | dark}};"><div class="inline-block" style="width: 60px;">'''Dif. Sp.'''</div><div class="inline-block" style="width: 30px;">'''{{{DifSp|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | difesa_speciale}}; width: {{{DifSp|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{DifSp|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{DifSp|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
{| style="background: #{{#invoke: colore | difesa_speciale}}; border: 1px solid #{{#invoke: colore | difesa_speciale | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{DifSp|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{DifSp|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
! style="background: #{{#invoke: colore | difesa_speciale | light}}; width: 60px;" | Dif. Sp.
! style="background: #{{#invoke: colore | difesa_speciale | light}}; width: 30px;" | {{{DifSp|1}}}
| style="width: {{{DifSp|1}}}px;" |
|}
! <small>{{#expr: floor((((0 + 2 * {{{DifSp|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{DifSp|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{DifSp|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{DifSp|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{#invoke: colore | velocita | light}};"
| <div class="inline-block text-center" style="border: 1px solid #{{#invoke: colore | velocita | dark}};"><div class="inline-block" style="width: 60px;">'''Velocità'''</div><div class="inline-block" style="width: 30px;">'''{{{Velocita|1}}}'''</div><div class="inline-block" style="background: #{{#invoke: colore | velocita}}; width: {{{Velocita|1}}}px;">&nbsp;</div></div>
|
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Velocita|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Velocita|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
{| style="background: #{{#invoke: colore | velocita}}; border: 1px solid #{{#invoke: colore | velocita | dark}};" cellspacing="0" cellpadding="0"
! <class="small>-text" | {{#expr: floor((((0 + 2 * {{{Velocita|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Velocita|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
! style="background: #{{#invoke: colore | velocita | light}}; width: 60px;" | Velocità
! style="background: #{{#invoke: colore | velocita | light}}; width: 30px;" | {{{Velocita|1}}}
| style="width: {{{Velocita|1}}}px;" |
|}
! <small>{{#expr: floor((((0 + 2 * {{{Velocita|1}}} + (0/4)) * 50/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Velocita|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
! <small>{{#expr: floor((((0 + 2 * {{{Velocita|1}}} + (0/4)) * 100/100) + 5) * .9)}} - {{#expr: floor((((31 + 2 * {{{Velocita|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
|- style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}};"
| colspan="3" | <div style="backgroundborder: 1px solid #{{#invoke: colore | {{{tipo|sconosciuto}}} | lightdark}};"><div borderclass="inline-leftblock text-center" style="width: solid60px;">'''Totale:'''</div><div class="inline-block text-center" style="width: 30px; border-right: 1px solid #{{#invoke: colore | {{{tipo|sconosciuto}}} | dark}};">'''{{#expr: {{{PS|1}}} &nbsp;&nbsp;+ {{{Attacco|1}}} + {{{Difesa|1}}} + {{{AttSp|1}}} + {{{DifSp|1}}} + {{{Velocita|1}}}}}'''</div><div class="inline-block small-text" style="padding-left: 2ex;">[[{{colore2|000|:Categoria:Pokémon con statistiche base totali di {{#expr: {{{PS|1}}} + {{{Attacco|1}}} + {{{Difesa|1}}} + {{{AttSp|1}}} + {{{DifSp|1}}} + {{{Velocita|1}}}}}|{{colore|000|Altri Pokémon con questo totale}}]]</smalldiv></div>&nbsp;&nbsp;
| colspan="3" |
{| width="100%" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}}}}; border: 1px solid #{{#invoke: colore | {{{tipo|sconosciuto}}} | dark}};" cellspacing="0" cellpadding="0"
! style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; width: 60px;" | Totale:
! style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; width: 30px;" | {{#expr: {{{PS|1}}} + {{{Attacco|1}}} + {{{Difesa|1}}} + {{{AttSp|1}}} + {{{DifSp|1}}} + {{{Velocita|1}}}}}
| style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; border-left: solid 1px #{{#invoke: colore | {{{tipo|sconosciuto}}} | dark}};" | &nbsp;&nbsp;<small>[[:Categoria:Pokémon con statistiche base totali di {{#expr: {{{PS|1}}} + {{{Attacco|1}}} + {{{Difesa|1}}} + {{{AttSp|1}}} + {{{DifSp|1}}} + {{{Velocita|1}}}}}|{{colore|000|Altri Pokémon con questo totale}}]]</small>&nbsp;&nbsp;
|}
|-
| colspan="3" class="roundybottom small-text" style="background: #{{#invoke: colore | {{{tipo|sconosciuto}}} | light}}; {{roundybottom|10px}}" |
*<small>Le statistiche minime sono calcolate con 0 [[Punti Allenamento|PA]], [[Valori Individuali|VI]] pari a 0, e una [[natura]] sfavorevole.
*Le statistiche massime sono calcolate 252 PA, VI pari a 31, e una natura favorevole.{{#if: {{{Speciale|}}} |
*La statistica {{background|8EC7BC|&nbsp;Speciale&nbsp;}} di questo Pokémon nella [[prima generazione]] era pari a '''{{{Speciale}}}'''.}}</small>
|}<noinclude>[[Categoria:Template]]</noinclude><includeonly>[[Categoria:Pokémon con statistiche base totali di {{#expr: {{{PS|1}}} + {{{Attacco|1}}} + {{{Difesa|1}}} + {{{AttSp|1}}} + {{{DifSp|1}}} + {{{Velocita|1}}}}}]]{{#ifexpr: ({{{Speciale|0}}} + {{{AttSp|1}}} + {{{DifSp|1}}}) div 3 = {{{Speciale|0}}} | [[Categoria:Pokémon la quale statistica Speciale è diventata sia Attacco Speciale che Difesa Speciale]] | {{#ifexpr: {{{Speciale|0}}} = {{{AttSp|1}}} | [[Categoria:Pokémon la quale statistica Speciale è diventata Attacco Speciale]]}}{{#ifexpr: {{{Speciale|0}}} = {{{DifSp|1}}} | [[Categoria:Pokémon la quale statistica Speciale è diventata Difesa Speciale]]}}}}{{#ifexpr: {{{PS|1}}} > 100 | [[Categoria:Pokémon con la statistica base dei PS superiore a 100]]}}{{#ifexpr: {{{Attacco|1}}} > 100 | [[Categoria:Pokémon con la statistica base dell'Attacco superiore a 100]]}}{{#ifexpr: {{{Difesa|1}}} > 100 | [[Categoria:Pokémon con la statistica base della Difesa superiore a 100]]}}{{#ifexpr: {{{AttSp|1}}} > 100 | [[Categoria:Pokémon con la statistica base dell'Attacco Speciale superiore a 100]]}}{{#ifexpr: {{{DifSp|1}}} > 100 | [[Categoria:Pokémon con la statistica base della Difesa Speciale superiore a 100]]}}{{#ifexpr: {{{Speciale|1}}} > 100 | [[Categoria:Pokémon con la Statistica base Speciale superiore a 100]]}}{{#ifexpr: {{{Velocita|1}}} > 100 | [[Categoria:Pokémon con la statistica base della Velocità superiore a 100]]}}{{#switch: {{{tipo|???}}} | ??? = [[Categoria:Pokémon con i box delle statistiche non colorati]]}}</includeonly>
<br clear="all">