Template:Year header
scope="row" colspan="7" style="text-align:left; background:#e9e9e9"
Usage
This template provides the table cell definitions for a table row header cell spanning up to seven columns. This is used to separate entries within a single table into groups, typically for a single year in a multi-year table.
For example: <syntaxhighlight lang="wikitext">
| [column header 1] | [column header 2] | [column header 3] | ||||
|---|---|---|---|---|---|---|
| 2012 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
| 2013 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
</syntaxhighlight> produces:
| [column header 1] | [column header 2] | [column header 3] | ||||
|---|---|---|---|---|---|---|
| 2012 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
| 2013 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
| The above documentation is transcluded from Template:Year header/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. |