Template:Left header/doc

From English Wikipedia @ Freddythechick

Usage

This template provides the table cell definitions for a left justified table row header cell.

There is a single optional parameter |style= whose value is appended to the header cell's style definition.

For example: <syntaxhighlight lang="wikitext">

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

Any extra attributes such as data-sort-value (see WP:SORT) for the row header cell follow {{left header}} directly, for example:

<syntaxhighlight lang="wikitext">

[caption text]
Title Column 2 Column 3
The First Title [normal cell S] [normal cell Q]
Second Title [normal cell P] [normal cell R]

</syntaxhighlight> produces:

[caption text]
Title Column 2 Column 3
The First Title [normal cell S] [normal cell Q]
Second Title [normal cell P] [normal cell R]

See also

  • {{Year header}} provides the table cell definitions for a table row header cell spanning up to seven columns.