Difference between revisions of "Template:PixelmonInfo"

From Pokeplay.io
Jump to navigation Jump to search
 
(3 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="left" class="informational-box" cellpadding="6" cellspacing="3" style="width: {{{Width|40}}}%; 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;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}}; 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>
  
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}}; padding: 0px; border-radius: 0px; 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%">
 
{{PixelmonBaseStats
 
{{PixelmonBaseStats
Line 60: Line 60:
 
</td>
 
</td>
 
</tr>
 
</tr>
</table>
 
 
<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: 3px solid #{{{{#external_value:type1}}_color_dark}}; background-color: #{{{{#external_value:type1}}_color_light}}; border-radius: 15px; padding: 5px; width: 100%">
Line 97: 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: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