Template:Gentable

| data-sort-value=0 style="background: #80BB1D; text-align: center" | I


Template documentation
Note: portions of the template sample may not be visible without values provided.

{{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 {{Roman|<1>}}, which converts the Roman numeral to decimal.

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

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Generation1

Generational Numeral

Linerequired
Sort value2

Override for the cell's `data-sort-value` property

Default
{{Roman|<1>}}
Lineoptional
Notenote

Any extra note can be added here

Stringoptional

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]
  1. Electric/Fire since Gen V