Template:LegendaryPokemon: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Experimentally removing stats to see if this pares down the template size enough to include more iterations in the Legendary Pokemon article.
Tag: Reverted
Undo revision 36995 by Naero (talk)
Tags: Undo Reverted
Line 5: Line 5:
{{#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>
{{#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>{{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;">
}}</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>
</tr><tr><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: #{{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>
</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>
<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></tr>{{Trichrome|Color=Typeless}}<td style="background-color: {{#var:border}}; color: {{#var:cell}}; border-radius: 25px 1px 1px 25px; width: 16%;">Total</td>
<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>
</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;">
<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>
<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>
</table></tr></table></includeonly>

Revision as of 23:53, 25 August 2025