Template:Typetable
| colspan="1" style="text-align:center; background:#{{{{{1}}} color}}"|[[{{{1}}} (type)|{{{1}}}]]
{{Typetable}} creates a table cell which links to a Type article with the type color background.
Usage
Do not type the pipe (|) at the beginning, as it is included in the template.
{|
|-
{{Typetable}}
|}
See Examples for more info.
Parameters
| Parameter | Allowed values | Notes |
|---|---|---|
| 1 (unnamed) | Normal • Fire • Fighting • Water • Flying • Grass • Poison • Electric • Ground • Psychic • Rock • Ice • Bug • Dragon • Ghost • Dark • Steel • Fairy • Stellar • ???
|
The required type. |
| colspan • 2 (unnamed) | Number | Optional. Number of columns for the cell to span. Defaults to 1.
|
| note | String | Optional. Any extra note, such as sup or references, can be added here.
|
TemplateData
This template creates a table cell which links to a Type article with the type color background
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type | 1 | Type name
| Line | required |
| Columns | colspan 2 | Number of columns for the cell to span
| Number | optional |
| Note | note | Any extra note can be added here | String | optional |
Examples
Different rows
Do not type the pipe (|) at the beginning of each row, as it is included in the template.
{| style="border: 3px solid grey;"
|-
{{Typetable|Grass}}
|-
{{Typetable|Fire}}
|-
{{Typetable|Water}}
|}
| Grass |
| Fire |
| Water |
Same row
For using multiple instances of {{typetable}} in the same row of the table, they can be used on either the same line of the source code or on multiple lines. Do not include the pipe (|) at the beginning of each row or the double pipe (||) separator.
{| style="border: 3px solid black;"
|-
{{Typetable|Fighting}} {{Typetable|Rock}} {{Typetable|Flying}}
|-
{{Typetable|Ice}}
{{Typetable|Ground}}
{{Typetable|Steel}}
|}
| Fighting | Rock | Flying |
| Ice | Ground | Steel |
Spanning multiple columns
Column span value can be provided using the colspan or the second unnamed parameter.
{| style="border: 3px solid black;"
|-
{{Typetable|Bug|colspan=2}}
|-
{{Typetable|Psychic}}
{{Typetable|Poison}}
|-
{{Typetable|Ghost|2}}
|}
| Bug | |
| Psychic | Poison |
| Ghost | |
Note
{| style="border: 3px solid black;"
|-
{{Typetable|Normal|note=<sup>Gen I-V</sup>}}
|-
{{Typetable|Fairy|note=<ref group=lower-alpha>Gen VI+</ref>}}
|}
| NormalGen I-V |
| Fairy[a] |
- ↑ Gen VI+