Template:Alternating rows table section
Template:End
Template documentation
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. This template may be used to generate a table with alternating row shading.
Usage
{{alternating rows table|class=wikitable}}
! Number !! Cell name
|-
! scope=row | 1 || Cell 1
|-
! scope=row | 2 || Cell 2
|-
! scope=row | 3 || Cell 3
|-
! scope=row | 4 || Cell 4
|-
{{end}}
Parameters
The default class is |class=wikitable
, for a sortable table, use |class=wikitable sortable
.
See also
- fr:MediaWiki:Common.css which includes the
alternance
class (the inspiration for this template).