Template:Left header
scope="row" style="text-align:left;"
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:
{| class="wikitable"
|+ [caption text]
|-
! scope="col" | Title
! scope="col" | Column 2
! scope="col" | Column 3
|-
! {{year header}} | [[1920 in film|1920]]
|-
! {{left header}} | [row header]
| [normal cell] || [normal cell]
|-
! {{left header}} | [row header]
| [normal cell] || [normal cell]
|-
! {{year header}} | [[1921 in film|1921]]
|-
! {{left header}} | [row header]
| [normal cell] || [normal cell]
|-
! {{left header |style=background:#e0eef7; }} | [row header]
| [normal cell] || [normal cell]
|}
produces:
| 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:
{| class="wikitable sortable"
|+ [caption text]
|-
! scope="col" | Title
! scope="col" | Column 2
! scope="col" | Column 3
|-
! {{left header}} data-sort-value="First Title" | The First Title
| [normal cell S] || [normal cell Q]
|-
! {{left header}} | Second Title
| [normal cell P] || [normal cell R]
|}
produces:
| 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.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.