Template:Types: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(added Stellar)
(Re-design to use TypeIcon)
 
Line 1: Line 1:
{| 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"
<div class="roundy" style="float:right; text-align:center; background:#FFF; padding: 3px; border: 2px solid #{{ {{{1|Status}}} color}}; margin-left: 5px; margin-bottom: 5px">
! colspan="7" | [[Type|{{color|000|Types}}]]
'''[[Type|{{color|000|Types}}]]'''
|-
<div style="display:grid; grid-template-columns: 1fr 1fr">
| rowspan="10" width="2%" |
<div>{{TypeIcon|Normal}}</div>
| width="21%" |
<div>{{TypeIcon|Fire}}</div>
| width="21%" |
<div>{{TypeIcon|Fighting}}</div>
| rowspan="10" width="2%" |
<div>{{TypeIcon|Water}}</div>
| width="21%" |
<div>{{TypeIcon|Flying}}</div>
| width="21%" |
<div>{{TypeIcon|Grass}}</div>
| rowspan="10" width="2%" |
<div>{{TypeIcon|Poison}}</div>
|-
<div>{{TypeIcon|Electric}}</div>
| 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}}
<div>{{TypeIcon|Ground}}</div>
| 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}}
<div>{{TypeIcon|Psychic}}</div>
|-
<div>{{TypeIcon|Rock}}</div>
| 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}}
<div>{{TypeIcon|Ice}}</div>
| 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}}
<div>{{TypeIcon|Bug}}</div>
|-
<div>{{TypeIcon|Dragon}}</div>
| 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}}
<div>{{TypeIcon|Ghost}}</div>
| 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}}
<div>{{TypeIcon|Dark}}</div>
|-
<div>{{TypeIcon|Steel}}</div>
| 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}}
<div>{{TypeIcon|Fairy}}</div>
| 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}}
</div>
|-
----
| 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}}
<div style="display:grid; grid-template-columns: 1fr 1fr">
| 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}}
<div>{{TypeIcon|Stellar}}</div>
|-
<div>{{TypeIcon|???}}</div>
| 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}}
</div>
| 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}}
</div><includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly><noinclude>[[Category:Navigation templates]]</noinclude>
|-
| 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}}|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}}|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}}|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}}|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}}|border: 1px solid #{{Fairy color dark}}}}" | {{tcolor|Fairy|FFF}}
|-  
| colspan="7" |
|-  
| rowspan="10" width="2%" |
| width="21%" |
| width="21%" |
| rowspan="10" width="2%" |
| width="21%" |
| width="21%" |
| rowspan="10" width="2%" |
|-  
| colspan="2" style="{{roundy|20px}} background:#{{Stellar color}}; {{#ifeq: {{PAGENAME}}|Stellar (type)|border: 2px solid #{{Stellar color light}}|border: 1px solid #{{Stellar color dark}}}}" | {{tcolor|Stellar|FFF}}
| colspan="2" style="{{roundy|20px}} background:#{{Unknown color}}; {{#ifeq: {{PAGENAME}}|??? (type)|border: 2px solid #{{Unknown color light}}|border: 1px solid #{{Unknown color dark}}}}" | {{tcolor|???|FFF}}
|-
| colspan="7" |
|}<includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly><noinclude>[[Category:Navigation templates]]</noinclude>

Latest revision as of 14:42, 14 January 2024