Difference between revisions of "Template:Type effectiveness"
From Rollo
Line 40: | Line 40: | ||
|- valign="center" | |- valign="center" | ||
! width="100px" | Resistant to: | ! width="100px" | Resistant to: | ||
− | | align="left" |<span align="left" style="display:{{#ifexpr: 0<{{{ | + | | align="left" | <span align="left" style="display:{{#ifexpr: 0<{{{Normal|100}}} and {{{Normal|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Normal|{{{Normal|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Fighting|100}}} and {{{Fighting|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Fighting|{{{Fighting|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Flying|100}}} and {{{Flying|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Flying|{{{Flying|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Poison|100}}} and {{{Poison|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Poison|{{{Poison|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Ground|100}}} and {{{Ground|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Ground|{{{Ground|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Rock|100}}} and {{{Rock|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Rock|{{{Rock|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Bug|100}}} and {{{Bug|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Bug|{{{Bug|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Ghost|100}}} and {{{Ghost|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Ghost|{{{Ghost|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Steel|100}}} and {{{Steel|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Steel|{{{Steel|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Fire|100}}} and {{{Fire|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Fire|{{{Fire|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Water|100}}} and {{{Water|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Water|{{{Water|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Grass|100}}} and {{{Grass|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Grass|{{{Grass|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Electric|100}}} and {{{Electric|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Electric|{{{Electric|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Psychic|100}}} and {{{Psychic|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Psychic|{{{Psychic|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Ice|100}}} and {{{Ice|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Ice|{{{Ice|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Dragon|100}}} and {{{Dragon|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Dragon|{{{Dragon|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Dark|100}}} and {{{Dark|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Dark|{{{Dark|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Fairy|100}}} and {{{Fairy|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Fairy|{{{Fairy|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Cosmic|100}}} and {{{Cosmic|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Cosmic|{{{Cosmic|100}}}}}</span><span align="left" style="display:{{#ifexpr: 0<{{{Glitch|100}}} and {{{Glitch|100}}}<100|inline-block|none}};">{{Type effectiveness entry|Glitch|{{{Glitch|100}}}}}</span><span align="left" style="display: {{#ifexpr: {{#ifexpr: {{{Normal|100}}} < 100 and {{{Normal|100}}} > 0|0|1}} * {{#ifexpr: {{{Fighting|100}}} < 100 and {{{Fighting|100}}} > 0|0|1}} * {{#ifexpr: {{{Flying|100}}} < 100 and {{{Flying|100}}} > 0|0|1}} * {{#ifexpr: {{{Poison|100}}} < 100 and {{{Poison|100}}} > 0|0|1}} * {{#ifexpr: {{{Ground|100}}} < 100 and {{{Ground|100}}} > 0|0|1}} * {{#ifexpr: {{{Rock|100}}} < 100 and {{{Rock|100}}} > 0|0|1}} * {{#ifexpr: {{{Bug|100}}} < 100 and {{{Bug|100}}} > 0|0|1}} * {{#ifexpr: {{{Ghost|100}}} < 100 and {{{Ghost|100}}} > 0|0|1}} * {{#ifexpr: {{{Steel|100}}} < 100 and {{{Steel|100}}} > 0|0|1}} * {{#ifexpr: {{{Fire|100}}} < 100 and {{{Fire|100}}} > 0|0|1}} * {{#ifexpr: {{{Water|100}}} < 100 and {{{Water|100}}} > 0|0|1}} * {{#ifexpr: {{{Grass|100}}} < 100 and {{{Grass|100}}} > 0|0|1}} * {{#ifexpr: {{{Electric|100}}} < 100 and {{{Electric|100}}} > 0|0|1}} * {{#ifexpr: {{{Psychic|100}}} < 100 and {{{Psychic|100}}} > 0|0|1}} * {{#ifexpr: {{{Ice|100}}} < 100 and {{{Ice|100}}} > 0|0|1}} * {{#ifexpr: {{{Dragon|100}}} < 100 and {{{Dragon|100}}} > 0|0|1}} * {{#ifexpr: {{{Dark|100}}} < 100 and {{{Dark|100}}} > 0|0|1}} * {{#ifexpr: {{{Fairy|100}}} < 100 and {{{Fairy|100}}} > 0|0|1}} * {{#ifexpr: {{{Cosmic|100}}} < 100 and {{{Cosmic|100}}} > 0|0|1}} * {{#ifexpr: {{{Glitch|100}}} < 100 and {{{Glitch|100}}} > 0|0|1}} = 0|none|inline-block}};"> |
{| width="125px" style="{{roundy|40px}} background: #000000; color:#FFFFFF;" | {| width="125px" style="{{roundy|40px}} background: #000000; color:#FFFFFF;" | ||
|- align="center" | |- align="center" |
Revision as of 14:17, 20 August 2020
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Usage
{{Type effectiveness |type1=Grass |type2=Grass |Normal=100 |Fighting=100 |Flying=200 |Poison=200 |Ground=50 |Rock=100 |Bug=200 |Ghost=100 |Steel=100 |Fire=200 |Water=50 |Grass=200 |Electric=200 |Psychic=100 |Ice=200 |Dragon=100 |Dark=100 |Fairy=100 |Cosmic=50 |Glitch=100 |notes=Relevant notes such as ability effects go here, otherwise delete this line. }}
{{Type effectiveness |type1= |type2= |Normal=100 |Fighting=100 |Flying=100 |Poison=100 |Ground=100 |Rock=100 |Bug=100 |Ghost=100 |Steel=100 |Fire=100 |Water=100 |Grass=100 |Electric=100 |Psychic=100 |Ice=100 |Dragon=100 |Dark=100 |Fairy=100 |Cosmic=100 |Glitch=100 |notes=Relevant notes such as ability effects go here, otherwise delete this line. }}
{{Type effectiveness |type1= |type2= |notes=Relevant notes such as ability effects go here, otherwise delete this line. }}