Template:Year header
Revision as of 09:12, 20 October 2013 by Wikipedia>WOSlinker (Changed protection level of Template:Year header: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
scope="row" colspan="7" style="text-align:left; background:#e9e9e9"
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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:
{| class="wikitable"
|+ [caption text]
|-
! scope="col" | [column header 1]
! scope="col" | [column header 2]
! scope="col" | [column header 3]
|-
! {{year header}} | [[1920 in film|1920]]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|-
! {{year header}} | [[1921 in film|1921]]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|}
produces:
| [column header 1] | [column header 2] | [column header 3] | ||||
|---|---|---|---|---|---|---|
| 1920 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
| 1921 | ||||||
| [row header] | [normal cell] | [normal cell] | ||||
| [row header] | [normal cell] | [normal cell] | ||||
See also
{{Left header}}provides the table cell definitions for a left justified table row header cell