Template:TypeEffectiveness: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
m Text replacement - "https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/" to "http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/"
 
(18 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|}}}}}
{{#arraydefine:resistancemagnitudes|{{{ResistanceMagnitudes|}}}}}
{{#arraydefine:neutralities|{{{Neutralities|}}}}}
{{#arraydefine:neutralities|{{{Neutralities|}}}}}
{{#arraydefine:resistances|{{{Resistances|}}}}}
{{#arraydefine:resistances|{{{Resistances|}}}}}
{{#arraydefine:immunities|{{{Immunities|}}}}}
{{#arraydefine:immunities|{{{Immunities|}}}}}
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{PAGENAME}}|data=type=Type 1}}
{{#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 width="55%" cellpadding="4" cellspacing="4" style="border: #{{{{#external_value:type}}_color}} 3px solid; 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><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>
<table style="text-align: center;">
{{#if:{{{Weaknesses|}}}|
{{#if:{{{Weaknesses|}}}|
{{#loop: weakness|
{{#loop: weakness|
Line 28: Line 29:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 55px; 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>
<table style="text-align: center;">
{{#if:{{{Neutralities|}}}|
{{#if:{{{Neutralities|}}}|
{{#loop: neutral|
{{#loop: neutral|
Line 46: Line 47:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 55px; 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>
<table style="text-align: center;">
{{#if:{{{Resistances|}}}|
{{#if:{{{Resistances|}}}|
{{#loop: resistance|
{{#loop: resistance|
Line 60: Line 61:
{{#vardefine:first|{{#expr:{{#var:resistance}} + {{#var:factor}} - 1}}}}
{{#vardefine:first|{{#expr:{{#var:resistance}} + {{#var:factor}} - 1}}}}
{{#vardefine:second|{{#expr:{{#var:resistance}} + {{#var:factor}}}}}}
{{#vardefine:second|{{#expr:{{#var:resistance}} + {{#var:factor}}}}}}
<tr><td>{{TypePip|{{#arrayindex:resistances|{{#var:first}}}}}}</td>{{#if: {{#arrayindex:resistances|{{#var:second}}}} |<td>{{TypePip|{{#arrayindex:resistances|{{#var:second}}}}}}</td>}}</tr>
<tr><td>{{TypePip|{{#arrayindex:resistances|{{#var:first}}}}|bold={{#arrayindex:resistancemagnitudes|{{#var:first}}}}}}</td>{{#if: {{#arrayindex:resistances|{{#var:second}}}} |<td>{{TypePip|{{#arrayindex:resistances|{{#var:second}}}}|bold={{#arrayindex:resistancemagnitudes|{{#var:second}}}}}}</td>}}</tr>
}}
}}
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 55px; 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>
<table style="text-align: center;">
{{#if:{{{Immunities|}}}|
{{#if:{{{Immunities|}}}|
{{#loop: immune|
{{#loop: immune|
Line 82: Line 83:
|
|
<td colspan="2">
<td colspan="2">
<div style="color: #FFFFFF; width: 55px; 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>
}}
}}
Line 88: Line 89:
</td>
</td>
</tr>
</tr>
<tr><td colspan="4"><p style="font-size: 11px; font-weight: bold; margin-left: 10px;">All <span style="color:#000000; font-weight: bold;">darkened</span> weakness types have a 4x weakness due to the multiplicative damage-modifiers of both of the Pokémon's type weaknesses.</p></td></tr>
{{#if:{{#external_value:type2}} |
<tr><td colspan="4"><ul style="font-size: 11px; font-weight: bold; margin-left: 10px;">
<li>All <span style="color:#000000; font-weight: bold;">darkened</span> weakness types have a 4x weakness due to the multiplicative damage-modifiers of both of the Pokémon's type weaknesses.</li>
<li>All <span style="color:#000000; font-weight: bold;">darkened</span> resistance types have a 1⁄4x resistance due to the multiplicative damage-modifiers of both of the Pokémon's type resistances.</li>
</ul>
</td></tr>
}}
</table>
</table>
</includeonly>
</includeonly>

Latest revision as of 11:03, 23 April 2022