Toggle menu
14
236
69
27.2K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:18, 3 March 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{Uses TemplateStyles|Template:alternating rows table/styles.css}} This template may be used to generate a table with alternating row shading. == Usage == <syntaxhighlight lang="mediawiki"> {{alternating rows table|class=wikitable}} ! Number !! Cell name |- | 1 || Cell 1 |- | 2 || Cell 2 |- | 3 || Cell 3 |- | 4 || Cell 4 |- {{end}}</syntaxhighlight> {{alternating rows table|class=wikitable}} ! Number !! Cell name |- | 1 || Cell 1 |- | 2 || Cell...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template may be used to generate a table with alternating row shading.

Usage

{{alternating rows table|class=wikitable}}
! Number !! Cell name
|-
| 1 || Cell 1
|-
| 2 || Cell 2
|-
| 3 || Cell 3
|-
| 4 || Cell 4
|-
{{end}}
Number Cell name
1 Cell 1
2 Cell 2
3 Cell 3
4 Cell 4

Parameters

The default class is |class=wikitable, for a sortable table, use |class=wikitable sortable.

Known issues

Background color on rows will look off if one of the cells spans multiple rows (ex. rowspan="2"). If the table is sortable, then this gets fixed once sorted since sortable collapses row spans.

See also