Template:TypeProperties: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(fixing template calls, adding category)
No edit summary
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="roundy" style="margin:auto; text-align:center; background-color: #{{{{{type|Normal}}} color dark}}; border: 3px solid #{{{{{type|Normal}}} color}}" cellpadding=3px width=520px
<includeonly>{| class="roundy" style="margin-bottom: 3px; text-align:center; background-color: #{{{{{type|Normal}}} color dark}}; border: 3px solid #{{{{{type|Normal}}} color}}; border-collapse:separate; font-size:90%" cellpadding=3px width=520px
|-
|-
! style="background-color: #{{{{{type|Normal}}} color light}}; {{roundytop|10px}}" colspan=3 | {{{prop|Off}}}ensive properties of [[File:{{{type|Normal}}} icon.png|18px]] {{{type|Normal}}}-type {{#switch:{{{prop|Off}}}|Off=moves|Def=Pokémon}}
! style="background-color: #{{{{{type|Normal}}} color light}}; {{roundytop|10px}}; font-size=90%" colspan=3 | {{{prop|Off}}}ensive properties of [[File:{{{type|Normal}}} icon.png|18px]] {{{type|Normal}}}-type {{#switch:{{{prop|Off}}}|Off=moves|Def=Pokémon}}
|-
|-
! style="background-color: #3A3B3C; color: white" width=33% | {{#switch:{{{prop|Off}}}|Off=Super effective|Def=Weak to}} (×2):
! style="background-color: #3A3B3C; color: white" width=33% | {{#switch:{{{prop|Off}}}|Off=Super effective|Def=Weak to}} (×2):
! style="background-color: #3A3B3C; color: white" width=34% | {{#switch:{{{prop|Off}}}|Off=Not very effective|Def=Resistant to}} (×½):
! style="background-color: #3A3B3C; color: white" width=34% | {{#switch:{{{prop|Off}}}|Off=Not very effective|Def=Resists}} (×½):
! style="background-color: #3A3B3C; color: white" width=33% | {{#switch:{{{prop|Off}}}|Off=No effect|Def=Immune to}} (×0):
! style="background-color: #3A3B3C; color: white" width=33% | {{#switch:{{{prop|Off}}}|Off=No effect|Def=Immune to}} (×0):
|-
|-
Line 15: Line 15:
==Usage==
==Usage==
<pre>
<pre>
{{User:Boblers/TypeEffectiveness
{{TypeProperties
|type=
|type=
|prop=
|prop=
|se=
|se=
|nve=
|nve=
|Immune=
|immune=
}}
}}
</pre>
</pre>
Line 35: Line 35:
===Offense and Defense===
===Offense and Defense===
<pre>
<pre>
{{User:Boblers/TypeEffectiveness|type=Fighting|prop=Off
{{TypeProperties|type=Fighting|prop=Off
|se={{TypeIcon|Ice}}{{TypeIcon|Normal}}{{TypeIcon|Rock}}
|se={{TypeIcon|Ice}}{{TypeIcon|Normal}}{{TypeIcon|Rock}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Poison}}{{TypeIcon|Psychic}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Poison}}{{TypeIcon|Psychic}}
|immune={{TypeIcon|Ghost}}
|immune={{TypeIcon|Ghost}}
}}
}}
{{User:Boblers/TypeEffectiveness|type=Fighting|prop=Def
{{TypeProperties|type=Fighting|prop=Def
|se={{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Psychic}}
|se={{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Psychic}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Rock}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Rock}}
Line 46: Line 46:
</pre>
</pre>


{{User:Boblers/TypeEffectiveness|type=Fighting|prop=Off
{{TypeProperties|type=Fighting|prop=Off
|se={{TypeIcon|Ice}}{{TypeIcon|Normal}}{{TypeIcon|Rock}}
|se={{TypeIcon|Ice}}{{TypeIcon|Normal}}{{TypeIcon|Rock}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Poison}}{{TypeIcon|Psychic}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Poison}}{{TypeIcon|Psychic}}
|immune={{TypeIcon|Ghost}}
|immune={{TypeIcon|Ghost}}
}}
}}
{{User:Boblers/TypeEffectiveness|type=Fighting|prop=Def
{{TypeProperties|type=Fighting|prop=Def
|se={{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Psychic}}
|se={{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Psychic}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Rock}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Rock}}
Line 58: Line 58:
===Different types===
===Different types===
<pre>
<pre>
{{User:Boblers/TypeEffectiveness|type=Fire|prop=Off}}
{{TypeProperties|type=Fire|prop=Off}}
{{User:Boblers/TypeEffectiveness|type=Water|prop=Off}}
{{TypeProperties|type=Water|prop=Off}}
{{User:Boblers/TypeEffectiveness|type=Grass|prop=Off}}
{{TypeProperties|type=Grass|prop=Off}}
</pre>
</pre>


{{User:Boblers/TypeEffectiveness|type=Fire|prop=Off}}
{{TypeProperties|type=Fire|prop=Off}}
{{User:Boblers/TypeEffectiveness|type=Water|prop=Off}}
{{TypeProperties|type=Water|prop=Off}}
{{User:Boblers/TypeEffectiveness|type=Grass|prop=Off}}
{{TypeProperties|type=Grass|prop=Off}}


[[Category:Table templates]]
[[Category:Table templates]]
</noinclude>
</noinclude>

Revision as of 10:45, 26 April 2024

This template is to be used to generate type effectiveness summary tables.

Usage

{{TypeProperties
|type=
|prop=
|se=
|nve=
|immune=
}}

Template fields

  • type - The desired type.
  • prop - The properties to be shown. Has two valid values: "Off" (offensive) or "Def" (defensive). Defaults to Off.
  • se - Lists a Template:TypeIcon for each type that the table type is super effective on (if offensive), or weak to (if defensive). Defaults to "None".
  • nve - Lists a Template:TypeIcon for each type that the table type is not very effective on (if offensive), or resistant to (if defensive). Defaults to "None".
  • immune - Lists a Template:TypeIcon for each type that the table type has no effect on (if offensive), or immune to (if defensive). Defaults to "None".

Examples

Offense and Defense

{{TypeProperties|type=Fighting|prop=Off
|se={{TypeIcon|Ice}}{{TypeIcon|Normal}}{{TypeIcon|Rock}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Poison}}{{TypeIcon|Psychic}}
|immune={{TypeIcon|Ghost}}
}}
{{TypeProperties|type=Fighting|prop=Def
|se={{TypeIcon|Fairy}}{{TypeIcon|Flying}}{{TypeIcon|Psychic}}
|nve={{TypeIcon|Bug}}{{TypeIcon|Rock}}
}}
Offensive properties of Fighting icon.png Fighting-type moves
Super effective (×2): Not very effective (×½): No effect (×0):
Ice icon.pngIceNormal icon.pngNormalRock icon.pngRock Bug icon.pngBugFairy icon.pngFairyFlying icon.pngFlyingPoison icon.pngPoisonPsychic icon.pngPsychic Ghost icon.pngGhost
Defensive properties of Fighting icon.png Fighting-type Pokémon
Weak to (×2): Resists (×½): Immune to (×0):
Fairy icon.pngFairyFlying icon.pngFlyingPsychic icon.pngPsychic Bug icon.pngBugRock icon.pngRock None

Different types

{{TypeProperties|type=Fire|prop=Off}}
{{TypeProperties|type=Water|prop=Off}}
{{TypeProperties|type=Grass|prop=Off}}
Offensive properties of Fire icon.png Fire-type moves
Super effective (×2): Not very effective (×½): No effect (×0):
None None None
Offensive properties of Water icon.png Water-type moves
Super effective (×2): Not very effective (×½): No effect (×0):
None None None
Offensive properties of Grass icon.png Grass-type moves
Super effective (×2): Not very effective (×½): No effect (×0):
None None None