Difference between revisions of "Template:PixelmonInfo"

From Pokeplay.io
Jump to navigation Jump to search
 
(40 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{#arraydefine:generations|I,II,III,IV,V,VI,VII}}
 
{{#arraydefine:generations|I,II,III,IV,V,VI,VII}}
 
{{#vardefine:gen|{{#arrayindex:generations|{{#expr:{{#external_value:generation}} - 1}}}}}}
 
{{#vardefine:gen|{{#arrayindex:generations|{{#expr:{{#external_value:generation}} - 1}}}}}}
<table align="center" class="informational-box" cellpadding="4" cellspacing="4" style="width: {{{Width|45}}}%; border: 4px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color}}; padding: 4px; border-radius: 15px;">
+
<table align="left" class="informational-box" cellpadding="6" cellspacing="3" style="width: {{{Width|50}}}%; border: 4px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color}}; padding: 4px; border-radius: 15px;">
<tr><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px;"><span style="margin-bottom: 7px; font-weight: bold; color:#{{{{#external_value:type1}}_color_dark}};">#{{padleft:{{#external_value:number}}|3}}</span>&nbsp;&nbsp;&nbsp;[[File:{{#external_value:number}}.png]]</td><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px;"><span style="margin-bottom: 7px; font-weight: bold; color:#{{{{#external_value:type1}}_color_dark}};">{{{Name|{{PAGENAME}}}}}</span></td></tr>
+
<tr><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px;"><span style="margin-bottom: 7px; font-weight: bold; color:#{{{{#external_value:type1}}_color_dark}};">#{{padleft:{{#external_value:number}}|3}}</span>&nbsp;&nbsp;&nbsp;[[File:{{#external_value:number}}.png]]</td><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px;"><span style="margin-bottom: 7px;margin-left: 10px; font-weight: bold; color:#{{{{#external_value:type1}}_color_dark}};">{{{Name|{{PAGENAME}}}}}</span></td></tr>
  
 
<tr><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; padding: 11px; border-radius: 15px;"> <p style="margin-bottom: 7px; font-weight: bold; color: #{{{{#external_value:type1}}_color_dark}};">Type(s)</p>
 
<tr><td style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; padding: 11px; border-radius: 15px;"> <p style="margin-bottom: 7px; font-weight: bold; color: #{{{{#external_value:type1}}_color_dark}};">Type(s)</p>
Line 48: Line 48:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="6" style="border: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px; padding: 5px; width: 100%">
+
<td colspan="6" style="border: 0px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color}}; padding: 0px; border-radius: 0px; width: 100%;">  
 
<table width="100%">
 
<table width="100%">
<tr><th colspan="6"><p style="margin-bottom: 7px; font-weight: bold; color: #{{{{#external_value:type1}}_color_dark}};">[[Base stats|<span style="margin-bottom: 7px; font-weight: bold; color: #{{{{#external_value:type1}}_color_dark}};">Base stats</span>]]</p></th></tr>
+
{{PixelmonBaseStats
<td style="border: 4px solid #{{HP color dark}}; background-color: #{{HP color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
+
|HP={{#external_value:hp}}
'''HP'''<br>
+
|Attack={{#external_value:atk}}
{{#external_value:hp}}
+
|Defense={{#external_value:def}}
</td>
+
|SpAtk={{#external_value:spatk}}
<td style="border: 4px solid #{{Attack color dark}}; background-color: #{{Attack color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
+
|SpDef={{#external_value:spdef}}
'''Atk'''<br>
+
|Speed={{#external_value:spd}}
{{#external_value:atk}}
+
}}
</td>
 
<td style="border: 4px solid #{{Defense color dark}}; background-color: #{{Defense color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
 
'''Def'''<br>
 
{{#external_value:def}}
 
</td>
 
<td style="border: 4px solid #{{Special Attack color dark}}; background-color: #{{Special Attack color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
 
'''Sp.Atk'''<br>
 
{{#external_value:spatk}}
 
</td>
 
<td style="border: 4px solid #{{Special Defense color dark}}; background-color: #{{Special Defense color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
 
'''Sp.Def'''<br>
 
{{#external_value:spdef}}
 
</td>
 
<td style="border: 4px solid #{{Speed color dark}}; background-color: #{{Speed color}}; border-radius: 15px; padding: 5px; font-size: 11px;">
 
'''Spd'''<br>
 
{{#external_value:spd}}
 
</td>
 
<tr>
 
{{#vardefine:bst|{{#expr:{{#external_value:hp}}+{{#external_value:atk}}+{{#external_value:def}}+{{#external_value:spatk}}+{{#external_value:spdef}}+{{#external_value:spd}}}}}}
 
<td colspan="6"><div style="margin: auto auto; background-color:#FFFFFF; border: 3px solid #{{{{#external_value:type1}}_color_dark}}; padding: 6px; border-radius: 25px; margin-bottom: 5px; width: 50%;">Base-stat total: {{#var:bst}}</div></td></tr>
 
</table>
 
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 117: Line 96:
 
</includeonly>
 
</includeonly>
 
<includeonly>
 
<includeonly>
[[Category:Pokémon species]] [[Category:Generation {{#var:gen}} Pokémon]] [[Category:{{#external_value:type1}}-type Pokémon]] {{#if:{{#external_value:type2}} | [[Category:{{#external_value:type2}}-type Pokémon]]}} [[Category:{{#external_value:rarity}} Pokémon]] {{#ifeq: {{#external_value:npc}} | '' | [[Category:NPC-obtainable Pokémon]]}} {{#if:{{{EvolvesInto|}}} {{#if:{{{EvolvesFrom|}}} | | [[Category:Base-stage Pokémon]] }} }} [[Category:{{#expr:{{#var:bst}} round -2}}-plus-BST Pokémon]]
+
[[Category:Pixelmon species]] [[Category:Generation {{#var:gen}} Pokémon]] [[Category:{{#external_value:type1}}-type Pokémon]] {{#if:{{#external_value:type2}} | [[Category:{{#external_value:type2}}-type Pokémon]]}}
 
</includeonly>
 
</includeonly>

Latest revision as of 12:52, 3 May 2022