Шаблон:Статы покемона — различия между версиями

Материал из ПокеВики
Перейти к: навигация, поиск
(Создано: {| align="center" style="background: red;" |- | align="center" | {| align="center" style="background: #2ABF2A; border-collapse:collapse;" ! Параметр статистики ! c...)
 
(значения по умолчанию, автоподсчёт суммы)
 
(не показано 12 промежуточных версий 2 участников)
Строка 3: Строка 3:
 
| align="center" |  
 
| align="center" |  
 
{| align="center" style="background: #2ABF2A; border-collapse:collapse;"
 
{| align="center" style="background: #2ABF2A; border-collapse:collapse;"
! Параметр статистики
+
! Атрибут
! colspan="2" align="center"| Базовый уровень
+
! colspan="2" align="center"| Базовое значение
 
|-
 
|-
|style="text-align:right; background: #C8F993;" | '''Пункты Жизни:'''
+
|style="text-align:right; background: #C8F993;" | '''HP:'''
!style="text-align:right;" | {{{HP}}}
+
!style="text-align:right;" | {{{HP|?}}}
|<div class="statbar" style="background:#A6A9FC; width: {{{HP}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#A6A9FC; width: {{{HP|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
 
|-
 
|-
 
|style="text-align:right;  background: #C8F993;" | '''Атака:'''
 
|style="text-align:right;  background: #C8F993;" | '''Атака:'''
!style="text-align:right;"|{{{Attack}}}
+
!style="text-align:right;"|{{{Attack|?}}}
|<div class="statbar" style="background:#FAA792; width: {{{Attack}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#FAA792; width: {{{Attack|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
 
|-
 
|-
 
|style="text-align:right; background: #C8F993;" | '''Защита:'''
 
|style="text-align:right; background: #C8F993;" | '''Защита:'''
!style="text-align:right;"|{{{Defense}}}
+
!style="text-align:right;"|{{{Defense|?}}}
|<div class="statbar" style="background:#FBEE91; width: {{{Defense}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#FBEE91; width: {{{Defense|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
 
|-
 
|-
 
|style="text-align:right; background: #C8F993;" | '''Спец. Атака:'''
 
|style="text-align:right; background: #C8F993;" | '''Спец. Атака:'''
!style="text-align:right;"|{{{SpecAttack}}}
+
!style="text-align:right;"|{{{SpecAttack|?}}}
|<div class="statbar" style="background:#FFC378; width: {{{SpecAttack}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#FFC378; width: {{{SpecAttack|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
 
|-
 
|-
|style="text-align:right; background: #8BE75C;" | '''[[Stats#Special Defense|{{color|000|Special Defense}}]]:'''
+
|style="text-align:right; background: #C8F993;" | '''Спец. Защита:'''
!style="text-align:right;"|{{{SpDef|1}}}
+
!style="text-align:right;"|{{{SpecDefense|?}}}
|<div class="statbar" style="background:#{{special defense color}}; width: {{{SpDef|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#7DE4FB; width: {{{SpecDefense|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{SpDef|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
 
! <small>{{#expr: floor((((31 + 2 * {{{SpDef|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
 
! <small>{{#expr: floor((((0 + 2 * {{{SpDef|1}}} + (0/4)) * 100/100) + 5) * .9)}}</small>
 
! <small>{{#expr: floor((((31 + 2 * {{{SpDef|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
 
 
|-
 
|-
|style="text-align:right; background: #F690AE;" | '''[[Stats#Speed|{{color|000|Speed}}]]:'''
+
|style="text-align:right; background: #C8F993;" | '''Скорость:'''
!style="text-align:right;"|{{{Speed|1}}}
+
!style="text-align:right;"|{{{Speed|?}}}
|<div class="statbar" style="background:#{{speed color}}; width: {{{Speed|1}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
+
|<div class="statbar" style="background:#7DFBA3; width: {{{Speed|0}}}px; height: 10px; border: 1px solid black; overflow: hidden;">&nbsp;</div>
! <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 50/100) + 5) * .9)}}</small>
 
! <small>{{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 50/100) + 5) * 1.1)}}</small>
 
! <small>{{#expr: floor((((0 + 2 * {{{Speed|1}}} + (0/4)) * 100/100) + 5) * .9)}}</small>
 
! <small>{{#expr: floor((((31 + 2 * {{{Speed|1}}} + (252/4)) * 100/100) + 5) * 1.1)}}</small>
 
 
|-
 
|-
|style="text-align:right;" | '''Total:'''
+
|style="text-align:right;" | '''Сумма:'''
!style="text-align:right;"|{{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}
+
!style="text-align:right;" | {{#expr:{{{HP|0}}}+{{{Attack|0}}}+{{{Defense|0}}}+{{{SpecAttack|0}}}+{{{SpecDefense|0}}}+{{{Speed|0}}} }}
| colspan="5" | {{cat|Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}|Other Pokémon with this total}}
+
|-  
|- style="background: #{{{{{type|???}}} color light}}"
 
| colspan="7" |
 
 
|}
 
|}
|}<noinclude>[[Category:Templates]]</noinclude><includeonly>[[Category:Pokémon with a base stat total of {{#expr: {{{HP|1}}} + {{{Attack|1}}} + {{{Defense|1}}} + {{{SpAtk|1}}} + {{{SpDef|1}}} + {{{Speed|1}}}}}]]{{#ifexpr: ({{{Special|0}}} + {{{SpAtk|1}}} + {{{SpDef|1}}}) div 3 = {{{Special|0}}}|[[Category:Pokémon whose Special stat became both Special Attack and Special Defense]]|{{#ifexpr: {{{Special|0}}} = {{{SpAtk|1}}}|[[Category:Pokémon whose Special stat became their Special Attack]]}}{{#ifexpr: {{{Special|0}}} = {{{SpDef|1}}}|[[Category:Pokémon whose Special stat became their Special Defense]]}}}}{{#ifexpr: {{{HP|1}}} > 100|[[Category:Pokémon whose base HP stat is greater than 100]]}}{{#ifexpr: {{{Attack|1}}} > 100|[[Category:Pokémon whose base Attack stat is greater than 100]]}}{{#ifexpr: {{{Defense|1}}} > 100|[[Category:Pokémon whose base Defense stat is greater than 100]]}}{{#ifexpr: {{{SpAtk|1}}} > 100|[[Category:Pokémon whose base Special Attack stat is greater than 100]]}}{{#ifexpr: {{{SpDef|1}}} > 100|[[Category:Pokémon whose base Special Defense stat is greater than 100]]}}{{#ifexpr: {{{Special|1}}} > 100|[[Category:Pokémon whose base Special stat is greater than 100]]}}{{#ifexpr: {{{Speed|1}}} > 100|[[Category:Pokémon whose base Speed stat is greater than 100]]}}{{#switch: {{{type|???}}}|???=[[Category:Pokémon whose base stats boxes are uncolored]]}}</includeonly>
+
|}
<br clear="all">
+
<noinclude>
 +
 
 +
== Пример ==
 +
 
 +
<pre>{{Статы покемона| HP=65 | Attack=35 | Defense=35 | SpecAttack=45 | SpecDefense=50 | Speed=40 | Total=270}}</pre>
 +
 
 +
Структура шаблона заимствована у [http://bulbapedia.bulbagarden.net/wiki/Main_Page Бульбапедии].
 +
[[Категория:ПокеВики:Шаблоны]]</noinclude>

Текущая версия на 16:33, 6 августа 2009

Атрибут Базовое значение
HP:  ?
 
Атака: ?
 
Защита: ?
 
Спец. Атака: ?
 
Спец. Защита: ?
 
Скорость: ?
 
Сумма: 0


Пример

{{Статы покемона| HP=65 | Attack=35 | Defense=35 | SpecAttack=45 | SpecDefense=50 | Speed=40 | Total=270}}

Структура шаблона заимствована у Бульбапедии.