Template:Year header/doc
This is a documentation subpage for Template:Year header. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
changeThis 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}} | [[2012 in movies|2012]]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|-
! scope="row" | [row header]
| [normal cell] || [normal cell]
|-
! {{year header}} | [[2013 in movies|2013]]
|-
! 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] | ||||
---|---|---|---|---|---|---|
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] |