User:Tiddlywinks/TE/Water
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
1
This template defines the defensive strengths/weakenesses of the Water type. I.e., Water is weak to Grass (2) and resists Fire (0.5). It is designed to be substituted, such that {{subst:User:Tiddlywinks/TE/Water|Grass}}
becomes "2" directly (instead of giving the switch statement).
- Parameters
- Unnamed
- 1: A type (Normal, Fire, Bug, Water, etc). Capitalization is ignored, so "Bug", "bug", and "BUG" will return the same value
- Super effective types return
2
, not very effective types return0.5
, no effect types return0
(immunity), and all other values return1
.
- Super effective types return
- 1: A type (Normal, Fire, Bug, Water, etc). Capitalization is ignored, so "Bug", "bug", and "BUG" will return the same value