Template:TypeEffectiveness: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
{{#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://pro-wiki.info/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: 45%; 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: #{{{{#external_value:type}}_color}} 3px solid; width: 45%; max-width: 80%; border-radius: 15px; background: #{{{{#external_value:type}}_color_dark}}; 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>
Line 89: Line 89:
</td>
</td>
</tr>
</tr>
{{#if:{{#external_value:type2}} |
<tr><td colspan="4"><ul style="font-size: 11px; font-weight: bold; margin-left: 10px;">
<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> weakness types have a 4x weakness due to the multiplicative damage-modifiers of both of the Pokémon's type weaknesses.</li>
Line 94: Line 95:
</ul>
</ul>
</td></tr>
</td></tr>
}}
</table>
</table>
</includeonly>
</includeonly>

Revision as of 22:31, 27 January 2017