Template:Year header/doc

From English Wikipedia @ Freddythechick

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">

[caption text]
[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]

</syntaxhighlight> produces:

[caption text]
[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