Template:Gentable
| data-sort-value=0 style="background: #80BB1D; text-align: center" | I
{{Gentable}} creates a table cell which links to a Generation article with the generation color background.
Usage
Do not type the pipe (|) at the beginning, as it is included in the template.
{|
|-
{{Gentable}}
|}
See Examples for more info.
Parameters
| Parameter | Allowed values | Notes |
|---|---|---|
| 1 (unnamed) | Roman numeral | Generational numeral |
| 2 (unnamed) | String | Optional. Override for the data-sort-value property (sortkey) of the cell.
Defaults to |
| 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 Generation article with the generation color background
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Generation | 1 | Generational Numeral | Line | required |
| Sort value | 2 | Override for the cell's `data-sort-value` property
| Line | 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;"
|-
{{Gentable|I}}
|-
{{Gentable|II}}
|-
{{Gentable|II}}
|}
| I |
| II |
| III |
Same row
For using multiple instances of {{gentable}} 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;"
|-
{{Gentable|IV}} {{Gentable|V}} {{Gentable|VI}}
|-
{{Gentable|VII}}
{{Gentable|VIII}}
{{Gentable|IX}}
|}
| IV | V | VI |
| VII | VIII | IX |
With different sort value
{| class="sortable" style="border: 3px solid black;"
! class="unsortable" | Sort value
! Output
|-
| 999
{{Gentable|I|999}}
|-
| 997
{{Gentable|II|997}}
|-
| 998
{{Gentable|III|998}}
|}
| Sort value | Output |
|---|---|
| 999 | I |
| 997 | II |
| 998 | III |
Note
{| style="border: 3px solid black;"
|-
{{Gentable|IV|note=<sup>(Electric/Ghost in Gen IV)</sup>}}
|-
{{Gentable|V|note=+<ref group=fn>Electric/Fire since Gen V</ref>}}
|}
| IV(Electric/Ghost in Gen IV) |
| V+[fn 1] |
- ↑ Electric/Fire since Gen V