Template:LegendaryPokemon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:iteration|{{#arraysearch:pname|{{{Name}}}}}}} | <includeonly>{{#if:{{#var:arrayregistered}} != 1|{{PokemonArray}}{{#vardefine:arrayregistered|1}}}}{{Trichrome|Color={{#var:region}}}}{{#vardefine:iteration|{{#arraysearch:pname|{{{Name}}}}}}}{{Trichrome|Color={{#arrayindex:type1|{{#var:iteration}}}}}}{{#vardefine:generation|{{#switch: {{#arrayindex:gen|{{#var:iteration}}}} | 1 = I | 2 = II | 3 = III | 4 = IV | 5 = V | 6 = VI | 7 = VII}}}}<table style="background-color: {{#var:background}}; border-radius: 25px; border: 1px solid {{#var:border}}; width: 50%; padding: 3px; text-align: center;"> | ||
{{Trichrome|Color={{#arrayindex:type1|{{#var:iteration}}}}}} | <tr><td width="100%"><div style="background-color: {{#var: cell}}; margin: auto auto; border-radius: 25px; border: 1px solid {{#var:border}};color: {{#var:border}}; width: 50%;">#{{#arrayindex:number|{{#var:iteration}}}} <span style="font-weight: bold; font-size: large;">[[{{{Name}}}|<span style="color: {{#var:border}};">{{{Name}}}</span>]]</span><br><span style="font-size: small;">[[:Category:Generation {{#var:generation}} Pokémon|<span style="color: {{#var:border}}; font-weight: bold;">Generation {{#var:generation}}</span>]]</span></div></td> | ||
<table style="background-color: {{#var:background}}; border-radius: 25px; border: 1px solid {{#var:border}}; width: | </tr><tr><td style="border-radius: 15px; margin: auto auto; 5px; text-align: center; padding: 5px;"><div style="margin: auto auto; background-color: #FFFFFF; border-radius: 25px; width: 50%; border: 1px solid {{#var:border}};">[[File:{{#arrayindex:number|{{#var:iteration}}}}{{#arrayindex:pname|{{#var:iteration}}}}.png|150px]]</div></td></tr> | ||
<tr><td width="100%"><div style="background-color: {{#var: cell}}; margin: auto auto; border-radius: 25px; border: 1px solid {{#var:border}};color: {{#var:border}}; width: 50%;">#{{#arrayindex:number|{{#var:iteration}}}} <span style="font-weight: bold;">[[{{{Name}}}|<span style="color: {{#var:border}};">{{{Name}}}</span>]]</span></div> | <tr><td><table align="center" style="width: 25%; font-weight: bold;"><tr> | ||
</tr> | {{#if:{{#arrayindex:type2|{{#var:iteration}}}}|<td style="width: 50%; background-color: {{#var: border}}; border-radius: 25px 1px 1px 25px;">[[{{#arrayindex:type1|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type1|{{#var:iteration}}}}</span>]]</td> | ||
<tr> | |||
<td style="border-radius: 15px; margin: auto auto; 5px; text-align: center; padding: 5px;"><div style="margin: auto auto; background-color: #FFFFFF; border-radius: 25px; width: | |||
<tr> | |||
<td> | |||
<table align="center" style="width: 25%; font-weight: bold;"> | |||
<tr> | |||
{{#if:{{#arrayindex:type2|{{#var:iteration}}}}| | |||
<td style="width: 50%; background-color: {{#var: border}}; border-radius: 25px 1px 1px 25px;">[[{{#arrayindex:type1|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type1|{{#var:iteration}}}}</span>]]</td> | |||
{{Trichrome|Color={{#arrayindex:type2|{{#var:iteration}}}}}}<td style="width: 50%; background-color: {{#var: border}}; border-radius: 1px 25px 25px 1px;">[[{{#arrayindex:type2|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type2|{{#var:iteration}}}}</span>]]</td>{{Trichrome|Color={{#arrayindex:type1|{{#var:iteration}}}}}}|<td style="width:100%; background-color: {{#var:border}}; border-radius: 25px;">[[{{#arrayindex:type1|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type1|{{#var:iteration}}}}</span>]]</td> | {{Trichrome|Color={{#arrayindex:type2|{{#var:iteration}}}}}}<td style="width: 50%; background-color: {{#var: border}}; border-radius: 1px 25px 25px 1px;">[[{{#arrayindex:type2|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type2|{{#var:iteration}}}}</span>]]</td>{{Trichrome|Color={{#arrayindex:type1|{{#var:iteration}}}}}}|<td style="width:100%; background-color: {{#var:border}}; border-radius: 25px;">[[{{#arrayindex:type1|{{#var:iteration}}}}_(type)|<span style="color: #FFFFFF;">{{#arrayindex:type1|{{#var:iteration}}}}</span>]]</td> | ||
}} | }}</tr></table></td></tr><tr><td width="100%"><table style="width: 100%; font-weight: bold;"><tr><td style="background-color: #{{HP_color_dark}}; color: #{{HP_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">HP</td> | ||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="100%"> | |||
<table style="width: 100%; font-weight: bold;"> | |||
<tr> | |||
<td style="background-color: #{{HP_color_dark}}; color: #{{HP_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">HP</td> | |||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{HP_color_light}}; color: #{{HP_color_dark}};"><div style="background-color: #{{HP_color}}; border: 1px solid #{{HP_color_dark}}; width: {{#expr:{{#arrayindex:hp|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:hp|{{#var:iteration}}}}</div></td> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{HP_color_light}}; color: #{{HP_color_dark}};"><div style="background-color: #{{HP_color}}; border: 1px solid #{{HP_color_dark}}; width: {{#expr:{{#arrayindex:hp|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:hp|{{#var:iteration}}}}</div></td> | ||
</tr> | </tr><tr><td style="background-color: #{{Attack_color_dark}}; color: #{{Attack_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Attack</td> | ||
<tr> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{Attack_color_light}}; color: #{{Attack_color_dark}};"><div style="background-color: #{{Attack_color}}; border: 1px solid #{{Attack_color_dark}}; width: {{#expr:{{#arrayindex:atk|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:atk|{{#var:iteration}}}}</div></td></tr><tr><td style="background-color: #{{Defense_color_dark}}; color: #{{Defense_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Defense</td> | ||
<td style="background-color: #{{Attack_color_dark}}; color: #{{Attack_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Attack</td> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{Defense_color_light}}; color: #{{Defense_color_dark}};"><div style="background-color: #{{Defense_color}}; border: 1px solid #{{Defense_color_dark}}; width: {{#expr:{{#arrayindex:def|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:def|{{#var:iteration}}}}</div></td></tr><tr><td style="background-color: #{{Special Attack_color_dark}}; color: #{{Special Attack_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Special Attack</td> | ||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{Attack_color_light}}; color: #{{Attack_color_dark}};"><div style="background-color: #{{Attack_color}}; border: 1px solid #{{Attack_color_dark}}; width: {{#expr:{{#arrayindex:atk|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:atk|{{#var:iteration}}}}</div></td> | |||
</tr> | |||
<tr> | |||
<td style="background-color: #{{Defense_color_dark}}; color: #{{Defense_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Defense</td> | |||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{Defense_color_light}}; color: #{{Defense_color_dark}};"><div style="background-color: #{{Defense_color}}; border: 1px solid #{{Defense_color_dark}}; width: {{#expr:{{#arrayindex:def|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:def|{{#var:iteration}}}}</div></td> | |||
</tr> | |||
<tr> | |||
<td style="background-color: #{{Special Attack_color_dark}}; color: #{{Special Attack_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Special Attack</td> | |||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{Special Attack_color_light}}; color: #{{Special Attack_color_dark}};"><div style="background-color: #{{Special Attack_color}}; border: 1px solid #{{Special Attack_color_dark}}; width: {{#expr:{{#arrayindex:spatk|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:spatk|{{#var:iteration}}}}</div></td> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{Special Attack_color_light}}; color: #{{Special Attack_color_dark}};"><div style="background-color: #{{Special Attack_color}}; border: 1px solid #{{Special Attack_color_dark}}; width: {{#expr:{{#arrayindex:spatk|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:spatk|{{#var:iteration}}}}</div></td> | ||
</tr> | </tr><tr><td style="background-color: #{{Special Defense_color_dark}}; color: #{{Special Defense_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Special Defense</td> | ||
<tr> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{Special Defense_color_light}}; color: #{{Special Defense_color_dark}};"><div style="background-color: #{{Special Defense_color}}; border: 1px solid #{{Special Defense_color_dark}}; width: {{#expr:{{#arrayindex:spdef|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:spdef|{{#var:iteration}}}}</div></td></tr> | ||
<td style="background-color: #{{Special Defense_color_dark}}; color: #{{Special Defense_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Special Defense</td> | <tr><td style="background-color: #{{Speed_color_dark}}; color: #{{Speed_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Speed</td> | ||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{Special Defense_color_light}}; color: #{{Special Defense_color_dark}};"><div style="background-color: #{{Special Defense_color}}; border: 1px solid #{{Special Defense_color_dark}}; width: {{#expr:{{#arrayindex:spdef|{{#var:iteration}}}}/0.55}}px">{{#arrayindex:spdef|{{#var:iteration}}}}</div></td> | |||
</tr> | |||
<tr> | |||
<td style="background-color: #{{Speed_color_dark}}; color: #{{Speed_color_light}}; border-radius: 25px 1px 1px 25px; width: 16%;">Speed</td> | |||
<td style="border-radius: 1px 25px 25px 1px; background-color: #{{Speed_color_light}}; color: #{{Speed_color_dark}};"><div style="background-color: #{{Speed_color}}; border: 1px solid #{{Speed_color_dark}}; width: {{#expr:{{#arrayindex:spd|{{#var:iteration}}}}/0.55}}px;">{{#arrayindex:spd|{{#var:iteration}}}}</div> | <td style="border-radius: 1px 25px 25px 1px; background-color: #{{Speed_color_light}}; color: #{{Speed_color_dark}};"><div style="background-color: #{{Speed_color}}; border: 1px solid #{{Speed_color_dark}}; width: {{#expr:{{#arrayindex:spd|{{#var:iteration}}}}/0.55}}px;">{{#arrayindex:spd|{{#var:iteration}}}}</div> | ||
</td> | </td></tr>{{Trichrome|Color=Typeless}}<td style="background-color: {{#var:border}}; color: {{#var:cell}}; border-radius: 25px 1px 1px 25px; width: 16%;">Total</td> | ||
</tr>{{Trichrome|Color=Typeless}} | <td style="border-radius: 1px 25px 25px 1px; background-color: {{#var:cell}}; color: {{#var:border}}; text-align: left; padding-left: 5px;">{{#expr:{{#arrayindex:hp|{{#var:iteration}}}}+{{#arrayindex:atk|{{#var:iteration}}}}+{{#arrayindex:def|{{#var:iteration}}}}+{{#arrayindex:spatk|{{#var:iteration}}}}+{{#arrayindex:spdef|{{#var:iteration}}}}+{{#arrayindex:spd|{{#var:iteration}}}}}}</td> | ||
<td style="background-color: {{#var:border}}; color: {{#var:cell}}; border-radius: 25px 1px 1px 25px; width: 16%;">Total</td> | </table></td></tr><tr><td>{{Trichrome|Color={{#arrayindex:type1|{{#var:iteration}}}}}}<table style="border-radius: 25px; border: 1px solid {{#var:border}}; width: 100%; background-color: #FFFFFF;background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; width: 100%; padding: 3px;"> | ||
<td style="border-radius: 1px 25px 25px 1px; background-color: {{#var:cell}}; color: {{#var:border}}; text-align: left; padding-left: 5px;">{{#expr:{{#arrayindex:hp|{{#var:iteration}}}}+{{#arrayindex:atk|{{#var:iteration}}}}+{{#arrayindex:def|{{#var:iteration}}}}+{{#arrayindex:spatk|{{#var:iteration}}}}+{{#arrayindex:spdef|{{#var:iteration}}}}+{{#arrayindex:spd|{{#var:iteration}}}}}} | <tr><th style="color: {{#var:border}}; font-weight: bold;">Availability</th></tr><tr><td style="background-color: #FFFFFF; color: #000000; border-radius: 25px; font-weight: normal; text-align: left; border: 1px solid {{#var:border}}; width: 90%;"><p style="padding-left: 8px;">{{{Requirements}}}</p></td></tr> | ||
</td> | </table></td></tr></table></includeonly> | ||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td> | |||
<table | |||
<tr><th style="color: {{#var:border}}; font-weight: bold;"> | |||
Availability | |||
</th></tr> | |||
<tr><td style="background-color: #FFFFFF; color: #000000; border-radius: 25px; font-weight: normal; text-align: left; border: 1px solid {{#var:border}}; width: 90%;"><p style="padding-left: 8px;">{{{Requirements}}}</p></td></tr> | |||
</table> | |||
</tr> | |||
</table></includeonly> |