Template:Types: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (There's more to fix here, but I'm tired and only stopping it from being broken right now) |
(Correcting align code, with help from User:Reshi643/Sandbox#Template:Types) |
||
Line 1: | Line 1: | ||
{| class="roundy" | {| class="roundy" style="float:right; width: 150px; text-align:center; background:#FFF; border: 2px solid #{{{{#switch: {{PAGENAME}}|Normal (type)|Fighting (type)|Flying (type)|Poison (type)|Ground (type)|Rock (type)|Bug (type)|Ghost (type)|Steel (type)=Physical|Fire (type)|Water (type)|Grass (type)|Electric (type)|Psychic (type)|Ice (type)|Dragon (type)|Dark (type)=Special|Status}} color}}; margin-left: 5px; margin-bottom: 5px" | ||
! colspan="7" | [[Type|{{color|000|Types}}]] | ! colspan="7" | [[Type|{{color|000|Types}}]] | ||
|- | |- | ||
| rowspan="10" width="2%" | | | rowspan="10" width="2%" | | ||
| width="21%" | | | width="21%" | | ||
Line 9: | Line 9: | ||
| width="21%" | | | width="21%" | | ||
| rowspan="10" width="2%" | | | rowspan="10" width="2%" | | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Normal color}}; {{#ifeq: {{PAGENAME}}|Normal (type)|border: 2px solid #{{Normal color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Normal color}}; {{#ifeq: {{PAGENAME}}|Normal (type)|border: 2px solid #{{Normal color light}}|border: 1px solid #{{Normal color dark}}}}" | {{tcolor|Normal|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Fire color}}; {{#ifeq: {{PAGENAME}}|Fire (type)|border: 2px solid #{{Fire color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Fire color}}; {{#ifeq: {{PAGENAME}}|Fire (type)|border: 2px solid #{{Fire color light}}|border: 1px solid #{{Fire color dark}}}}" | {{tcolor|Fire|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Fighting color}}; {{#ifeq: {{PAGENAME}}|Fighting (type)|border: 2px solid #{{Fighting color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Fighting color}}; {{#ifeq: {{PAGENAME}}|Fighting (type)|border: 2px solid #{{Fighting color light}}|border: 1px solid #{{Fighting color dark}}}}" | {{tcolor|Fighting|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Water color}}; {{#ifeq: {{PAGENAME}}|Water (type)|border: 2px solid #{{Water color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Water color}}; {{#ifeq: {{PAGENAME}}|Water (type)|border: 2px solid #{{Water color light}}|border: 1px solid #{{Water color dark}}}}" | {{tcolor|Water|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Flying color}}; {{#ifeq: {{PAGENAME}}|Flying (type)|border: 2px solid #{{Flying color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Flying color}}; {{#ifeq: {{PAGENAME}}|Flying (type)|border: 2px solid #{{Flying color light}}|border: 1px solid #{{Flying color dark}}}}" | {{tcolor|Flying|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Grass color}}; {{#ifeq: {{PAGENAME}}|Grass (type)|border: 2px solid #{{Grass color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Grass color}}; {{#ifeq: {{PAGENAME}}|Grass (type)|border: 2px solid #{{Grass color light}}|border: 1px solid #{{Grass color dark}}}}" | {{tcolor|Grass|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Poison color}}; {{#ifeq: {{PAGENAME}}|Poison (type)|border: 2px solid #{{Poison color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Poison color}}; {{#ifeq: {{PAGENAME}}|Poison (type)|border: 2px solid #{{Poison color light}}|border: 1px solid #{{Poison color dark}}}}" | {{tcolor|Poison|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Electric color}}; {{#ifeq: {{PAGENAME}}|Electric (type)|border: 2px solid #{{Electric color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Electric color}}; {{#ifeq: {{PAGENAME}}|Electric (type)|border: 2px solid #{{Electric color light}}|border: 1px solid #{{Electric color dark}}}}" | {{tcolor|Electric|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Ground color}}; {{#ifeq: {{PAGENAME}}|Ground (type)|border: 2px solid #{{Ground color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Ground color}}; {{#ifeq: {{PAGENAME}}|Ground (type)|border: 2px solid #{{Ground color light}}|border: 1px solid #{{Ground color dark}}}}" | {{tcolor|Ground|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Psychic color}}; {{#ifeq: {{PAGENAME}}|Psychic (type)|border: 2px solid #{{Psychic color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Psychic color}}; {{#ifeq: {{PAGENAME}}|Psychic (type)|border: 2px solid #{{Psychic color light}}|border: 1px solid #{{Psychic color dark}}}}" | {{tcolor|Psychic|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Rock color}}; {{#ifeq: {{PAGENAME}}|Rock (type)|border: 2px solid #{{Rock color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Rock color}}; {{#ifeq: {{PAGENAME}}|Rock (type)|border: 2px solid #{{Rock color light}}|border: 1px solid #{{Rock color dark}}}}" | {{tcolor|Rock|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Ice color}}; {{#ifeq: {{PAGENAME}}|Ice (type)|border: 2px solid #{{Ice color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Ice color}}; {{#ifeq: {{PAGENAME}}|Ice (type)|border: 2px solid #{{Ice color light}}|border: 1px solid #{{Ice color dark}}}}" | {{tcolor|Ice|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Bug color}}; {{#ifeq: {{PAGENAME}}|Bug (type)|border: 2px solid #{{Bug color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Bug color}}; {{#ifeq: {{PAGENAME}}|Bug (type)|border: 2px solid #{{Bug color light}}|border: 1px solid #{{Bug color dark}}}}" | {{tcolor|Bug|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Dragon color}}; {{#ifeq: {{PAGENAME}}|Dragon (type)|border: 2px solid #{{Dragon color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Dragon color}}; {{#ifeq: {{PAGENAME}}|Dragon (type)|border: 2px solid #{{Dragon color light}}|border: 1px solid #{{Dragon color dark}}}}" | {{tcolor|Dragon|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Ghost color}}; {{#ifeq: {{PAGENAME}}|Ghost (type)|border: 2px solid #{{Ghost color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Ghost color}}; {{#ifeq: {{PAGENAME}}|Ghost (type)|border: 2px solid #{{Ghost color light}}|border: 1px solid #{{Ghost color dark}}}}" | {{tcolor|Ghost|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Dark color}}; {{#ifeq: {{PAGENAME}}|Dark (type)|border: 2px solid #{{Dark color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Dark color}}; {{#ifeq: {{PAGENAME}}|Dark (type)|border: 2px solid #{{Dark color light}}|border: 1px solid #{{Dark color dark}}}}" | {{tcolor|Dark|FFF}} | ||
|- | |- | ||
| colspan="2" style="{{roundy|20px}} background:#{{Steel color}}; {{#ifeq: {{PAGENAME}}|Steel (type)|border: 2px solid #{{Steel color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Steel color}}; {{#ifeq: {{PAGENAME}}|Steel (type)|border: 2px solid #{{Steel color light}}|border: 1px solid #{{Steel color dark}}}}" | {{tcolor|Steel|FFF}} | ||
| colspan="2" style="{{roundy|20px}} background:#{{Fairy color}}; {{#ifeq: {{PAGENAME}}|Fairy (type)|border: 2px solid #{{Fairy color light}} | | colspan="2" style="{{roundy|20px}} background:#{{Fairy color}}; {{#ifeq: {{PAGENAME}}|Fairy (type)|border: 2px solid #{{Fairy color light}}|border: 1px solid #{{Fairy color dark}}}}" | {{tcolor|Fairy|FFF}} | ||
|- | |- | ||
| colspan="7" | | | colspan="7" | | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| colspan="3" style="{{roundy|20px}} background:#{{Unknown color}}; {{#ifeq: {{PAGENAME}}|??? (type)|border: 2px solid #{{Unknown color light}} | | colspan="3" style="{{roundy|20px}} background:#{{Unknown color}}; {{#ifeq: {{PAGENAME}}|??? (type)|border: 2px solid #{{Unknown color light}}|border: 1px solid #{{Unknown color dark}}}}" | {{tcolor|???|FFF}} | ||
| colspan="2" | | | colspan="2" | | ||
|}<includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly><noinclude>[[Category:Navigation templates]]</noinclude> | |}<includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly><noinclude>[[Category:Navigation templates]]</noinclude> |