Template:TypeEffectiveness: Difference between revisions
Jump to navigation
Jump to search
m Text replacement - "https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/" to "http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/" |
updated template to a new and improved layout including 4x and 1/4x and a vertical layout instead of a horizontal one. |
||
| Line 1: | Line 1: | ||
<includeonly>{{Trichrome|Color={{{Color|{{#var:primaryType}}}}}}} | <noinclude> | ||
== Usage == | |||
<pre> | |||
{{TypeEffectiveness | |||
| Color = Fire | |||
| SuperWeaknesses = Fire, Ground | |||
| Weaknesses = Fighting, Water | |||
| Neutralities = Electric, Psychic | |||
| Resistances = Bug, Fairy, Dragon | |||
| SuperResistances = Grass | |||
| Immunities = Poison | |||
}} | |||
</pre> | |||
== Example == | |||
{{TypeEffectiveness | |||
| Color = Fire | |||
| SuperWeaknesses = Fire, Ground | |||
| Weaknesses = Fighting, Water | |||
| Neutralities = Electric, Psychic | |||
| Resistances = Bug, Fairy, Dragon | |||
| SuperResistances = Grass | |||
| Immunities = Poison | |||
}} | |||
</noinclude> | |||
<includeonly> | |||
{{Trichrome|Color={{{Color|{{#var:primaryType}}}}}}} | |||
{{#arraydefine:superweaknesses|{{{SuperWeaknesses|}}}}} | |||
{{#arraydefine:weaknesses|{{{Weaknesses|}}}}} | {{#arraydefine:weaknesses|{{{Weaknesses|}}}}} | ||
{{#arraydefine:neutralities|{{{Neutralities|}}}}} | {{#arraydefine:neutralities|{{{Neutralities|}}}}} | ||
{{#arraydefine:resistances|{{{Resistances|}}}}} | {{#arraydefine:resistances|{{{Resistances|}}}}} | ||
{{#arraydefine:superresistances|{{{SuperResistances|}}}}} | |||
{{#arraydefine:immunities|{{{Immunities|}}}}} | {{#arraydefine:immunities|{{{Immunities|}}}}} | ||
<table cellpadding="4" cellspacing="4" style="border: {{#var:background}} 3px solid; width: 66%; | <table cellpadding="4" cellspacing="4" | ||
<tr | style="border: {{#var:background}} 3px solid; | ||
<tr style="background: {{#var:cell}} | width: 66%; | ||
< | border-radius: 20px; | ||
< | background: {{#var:border}}; | ||
margin: 6px;"> | |||
<tr> | |||
<th colspan="2" style="font-size: 11px; text-align: left; padding-left: 10px;"> | |||
Under normal battle conditions, this Pokémon is: | |||
</th> | |||
</tr> | |||
{{#if:{{{SuperWeaknesses|}}}| | |||
<tr style="background: {{#var:cell}};"> | |||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
<span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">4×</span> | |||
Super-weak to | |||
</td> | |||
<td> | |||
<div style="display:flex; flex-wrap:wrap; gap:6px;"> | |||
{{#loop:sw|0|{{#arraysize:superweaknesses}}| | |||
{{TypePip|{{#arrayindex:superweaknesses|{{#var:sw}}}}}} | |||
}} | |||
</div> | |||
</td> | |||
</tr> | </tr> | ||
}} | |||
{{#if:{{{Weaknesses|}}}| | {{#if:{{{Weaknesses|}}}| | ||
<tr style="background: {{#var:cell}};"> | |||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
{{# | <span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">2×</span> | ||
Weak to | |||
</td> | |||
<td> | |||
< | <div style="display:flex; flex-wrap:wrap; gap:6px;"> | ||
{{#loop:w|0|{{#arraysize:weaknesses}}| | |||
{{TypePip|{{#arrayindex:weaknesses|{{#var:w}}}}}} | |||
}} | |||
</div> | |||
</td> | |||
</tr> | |||
}} | }} | ||
| | |||
< | {{#if:{{{Neutralities|}}}| | ||
< | <tr style="background: {{#var:cell}};"> | ||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
<span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">1×</span> | |||
Neutral to | |||
</td> | </td> | ||
<td> | |||
<div style="display:flex; flex-wrap:wrap; gap:6px;"> | |||
{{#loop:n|0|{{#arraysize:neutralities}}| | |||
{{TypePip|{{#arrayindex:neutralities|{{#var:n}}}}}} | |||
}} | }} | ||
</ | </div> | ||
</td> | </td> | ||
</tr> | |||
}} | }} | ||
| | |||
< | {{#if:{{{Resistances|}}}| | ||
< | <tr style="background: {{#var:cell}};"> | ||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
<span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">½×</span> | |||
Resistant to | |||
</td> | </td> | ||
<td> | |||
<div style="display:flex; flex-wrap:wrap; gap:6px;"> | |||
{{#loop:r|0|{{#arraysize:resistances}}| | |||
{{TypePip|{{#arrayindex:resistances|{{#var:r}}}}}} | |||
}} | }} | ||
</ | </div> | ||
</td> | </td> | ||
</tr> | |||
}} | }} | ||
| | |||
< | {{#if:{{{SuperResistances|}}}| | ||
< | <tr style="background: {{#var:cell}};"> | ||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
<span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">¼×</span> | |||
Highly resistant to | |||
</td> | </td> | ||
<td> | |||
<div style="display:flex; flex-wrap:wrap; gap:6px;"> | |||
{{#loop:sr|0|{{#arraysize:superresistances}}| | |||
{{TypePip|{{#arrayindex:superresistances|{{#var:sr}}}}}} | |||
}} | }} | ||
</ | </div> | ||
</td> | </td> | ||
< | </tr> | ||
}} | |||
{{#if:{{{Immunities|}}}| | {{#if:{{{Immunities|}}}| | ||
<tr style="background: {{#var:cell}};"> | |||
<td style="width: 18%; font-weight:bold; white-space:nowrap;"> | |||
<span style="display:inline-block; background:#FFF; border:{{#var:border}} 1px solid; border-radius:40px; padding:2px 8px; margin-right:6px;">0×</span> | |||
Immune to | |||
<tr | |||
<td | |||
< | |||
</td> | </td> | ||
<td> | |||
<div style="display:flex; flex-wrap:wrap; gap:6px;"> | |||
{{#loop:i|0|{{#arraysize:immunities}}| | |||
{{TypePip|{{#arrayindex:immunities|{{#var:i}}}}}} | |||
}} | }} | ||
</ | </div> | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 10:46, 31 January 2026
Usage
{{TypeEffectiveness
| Color = Fire
| SuperWeaknesses = Fire, Ground
| Weaknesses = Fighting, Water
| Neutralities = Electric, Psychic
| Resistances = Bug, Fairy, Dragon
| SuperResistances = Grass
| Immunities = Poison
}}
Example
|
Under normal battle conditions, this Pokémon is: |
|
|---|---|
|
4× Super-weak to |
|
|
2× Weak to |
|
|
1× Neutral to |
|
|
½× Resistant to |
|
|
¼× Highly resistant to |
|
|
0× Immune to |
|