Template:TypeEffectiveness: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
m Text replacement - "http://prowiki.info/" to "https://prowiki.info/"
m Text replacement - "https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/" to "http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/"
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{Trichrome|Color={{{Color|{{#var:primaryType}}}}}}}
{{#arraydefine:weaknesses|{{{Weaknesses|}}}}}
{{#arraydefine:weaknesses|{{{Weaknesses|}}}}}
{{#arraydefine:weaknessmagnitudes|{{{WeaknessMagnitudes|}}}}}
{{#arraydefine:weaknessmagnitudes|{{{WeaknessMagnitudes|}}}}}
Line 6: Line 6:
{{#arraydefine:resistances|{{{Resistances|}}}}}
{{#arraydefine:resistances|{{{Resistances|}}}}}
{{#arraydefine:immunities|{{{Immunities|}}}}}
{{#arraydefine:immunities|{{{Immunities|}}}}}
{{#get_web_data:url=https://prowiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{PAGENAME}}|data=type=Type 1,type2=Type 2}}
{{#get_web_data:url=http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{PAGENAME}}|data=type=Type 1,type2=Type 2}}
<table cellpadding="4" cellspacing="4" style="border: #{{{{#external_value:type}}_color}} 3px solid; width: 61%; max-width: 80%; border-radius: 15px; background: #{{{{#external_value:type}}_color_dark}}; margin-top: 5px; margin-bottom: 5px; margin-left: 3px;">
<table cellpadding="4" cellspacing="4" style="border: {{#var:background}} 3px solid; width: 66%; max-width: 80%; border-radius: 25px; background: {{#var:border}}; margin-top: 5px; margin-bottom: 5px; margin-left: 3px;">
<tr style="font-size:13px;"><td colspan="4"><p style="font-size: 11px; font-weight: bold; margin-left: 10px;">Under normal battle conditions, this Pokémon is:</p></td></tr>
<tr style="font-size:13px;"><td colspan="4"><p style="font-size: 11px; font-weight: bold; margin-left: 10px;">Under normal battle conditions, this Pokémon is:</p></td></tr>
<tr style="background: #{{{{#external_value:type}}_color_light}}; text-align: center; font-size: 14;">
<tr style="background: {{#var:cell}}; text-align: center; font-size: 14;">
<th scope="col" width="25%" style="border-radius: 15px 1px 1px 1px; border: #{{{{#external_value:type}}_color}} 2px solid; line-height: 1.7;"><span style="font-size: 13; border-radius: 40px; border: #{{{{#external_value:type}}_color_dark}} 2px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;2×&nbsp;</span>&nbsp;Weak to</th>
<th scope="col" width="25%" style="border-top-left-radius: 25px; border: {{#var:background}} 1px solid; line-height: 1.7;"><span style="font-size: 13; border-radius: 40px; border: {{#var:border}} 1px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;2×&nbsp;</span>&nbsp;Weak to</th>
<th scope="col" width="25%" style="border: #{{{{#external_value:type}}_color}} 2px solid;"><span style="font-size: 13; border-radius: 40px; border: #{{{{#external_value:type}}_color_dark}} 2px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;1×&nbsp;</span>&nbsp;Neutral to</th>
<th scope="col" width="25%" style="border: {{#var:background}} 1px solid;"><span style="font-size: 13; border-radius: 40px; border: {{#var:border}} 1px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;1×&nbsp;</span>&nbsp;Neutral to</th>
<th width="25%" scope="col" style="border: #{{{{#external_value:type}}_color}} 2px solid;"><span style="font-size: 13; border-radius: 40px; border: #{{{{#external_value:type}}_color_dark}} 2px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;½×&nbsp;</span>&nbsp;Resistant to</th>
<th width="25%" scope="col" style="border: {{#var:background}} 1px solid;"><span style="font-size: 13; border-radius: 40px; border: {{#var:border}} 1px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;½×&nbsp;</span>&nbsp;Resistant to</th>
<th width="35%" style="border-radius: 1px 15px 1px 1px; border: #{{{{#external_value:type}}_color}} 2px solid;"><span style="font-size: 13; border-radius: 40px; border: #{{{{#external_value:type}}_color_dark}} 2px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;0×&nbsp;</span>&nbsp;Immune to</th>
<th width="35%" style="border-top-right-radius: 25px; border: {{#var:background}} 1px solid;"><span style="font-size: 13; border-radius: 40px; border: #{{#var:border}} 1px solid; background: #FFFFFF; width: 20px; padding: 3px;">&nbsp;0×&nbsp;</span>&nbsp;Immune to</th>
</tr>
</tr>
<tr style="background: #{{{{#external_value:type}}_color_light}};">
<tr style="background: {{#var:cell}}; color: {{#var:border}};">
<td valign="top" width="25%" style="border: #{{{{#external_value:type}}_color}} 2px solid; border-radius: 1px 1px 1px 15px; text-align: left;">
<td valign="top" width="25%" style="border: {{#var:background}} 1px solid; border-bottom-left-radius: 25px; text-align: left;">
<table style="text-align: center;">
<table style="text-align: center;">
{{#if:{{{Weaknesses|}}}|
{{#if:{{{Weaknesses|}}}|
Line 29: Line 29:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 15px; border: 3px #000000; padding: 2px;">None</div>
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 25px; border: 3px #000000; padding: 2px;">None</div>
</td>
</td>
}}
}}
</table>
</table>
</td>
</td>
<td valign="top" width="25%" style="border: #{{{{#external_value:type}}_color}} 2px solid; border-radius:1px; text-align: left;">
<td valign="top" width="25%" style="border: {{#var:background}} 1px solid; border-radius:1px; text-align: left;">
<table style="text-align: center;">
<table style="text-align: center;">
{{#if:{{{Neutralities|}}}|
{{#if:{{{Neutralities|}}}|
Line 47: Line 47:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 15px; border: 3px #000000; padding: 2px;">None</div>
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 25px; border: 3px #000000; padding: 2px;">None</div>
</td>
</td>
}}
}}
</table>
</table>
</td>
</td>
<td valign="top" width="25%" style="border: #{{{{#external_value:type}}_color}} 2px solid; text-align: left;">
<td valign="top" width="25%" style="border: {{#var:background}} 1px solid; text-align: left;">
<table style="text-align: center;">
<table style="text-align: center;">
{{#if:{{{Resistances|}}}|
{{#if:{{{Resistances|}}}|
Line 65: Line 65:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 15px; border: 3px #000000; padding: 2px;">None</div>
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 25px; border: 3px #000000; padding: 2px;">None</div>
</td>
</td>
}}
}}
</table>
</table>
</td>
</td>
<td valign="top" width="25%" style="border: #{{{{#external_value:type}}_color}} 2px solid; border-radius:1px 1px 15px 1px; text-align: left;">
<td valign="top" width="25%" style="border: {{#var:background}} 1px solid; border-bottom-right-radius: 25px; text-align: left;">
<table style="text-align: center;">
<table style="text-align: center;">
{{#if:{{{Immunities|}}}|
{{#if:{{{Immunities|}}}|
Line 83: Line 83:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 15px; border: 3px #000000; padding: 2px;">None</div>
<div style="color: #FFFFFF; width: 60px; text-align: center; font-weight: bold; background: #000000; border-radius: 25px; border: 3px #000000; padding: 2px;">None</div>
</td>
</td>
}}
}}

Latest revision as of 11:03, 23 April 2022