Template:Alternative colors
(Redirected from Template:Alternate colors)
Jump to navigation
Jump to search
Contents
Usage
Provides alternative color table row.
Syntax
{{Alternative colors|<number>}}
Parameters
- 1 = <number> – row color depends on number parity; third color is provide if there is no number
Example
{|class="wikitable" |- bgcolor={{Alternative colors|1}} | 1e cell || 2e cell |- bgcolor={{Alternative colors|2}} | 3e cell || 4e cell |- bgcolor={{Alternative colors|3}} | 5e cell || 6e cell |- bgcolor={{Alternative colors|}} | 7e cell || 8e cell |- bgcolor={{Alternative colors|5}} | 9e cell || 10e cell |- bgcolor={{Alternative colors|6}} | 11e cell || 12e cell |}
1e cell | 2e cell |
3e cell | 4e cell |
5e cell | 6e cell |
7e cell | 8e cell |
9e cell | 10e cell |
11e cell | 12e cell |
The above documentation is transcluded from Template:Alternative colors/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |