More actions
Add documentation for diagonal split header |
m Some formatting. |
||
| Line 1: | Line 1: | ||
;Description | ; Description | ||
:This template is used to split a table header cell diagonally. | : This template is used to split a table header cell diagonally. | ||
;Syntax | |||
:Create a header cell containing: | ; Syntax | ||
: Create a header cell containing: {{T|diagonal split header|row_label|column_label}} | |||
; Parameters | ; Parameters | ||
: | :; row_label | ||
:: A word or phrase to be used as a row label. | :: A word or phrase to be used as a row label. | ||
: | :; column_label | ||
:: A word or phrase to be used as a column label. | :: A word or phrase to be used as a column label. | ||
;Sample | |||
; Sample | |||
<pre><nowiki> | |||
{| class="wikitable" | {| class="wikitable" | ||
! {{diagonal split header|foo|bar}} | ! {{diagonal split header|foo|bar}} | ||
| Line 20: | Line 23: | ||
| 4 || 5 || 6 | | 4 || 5 || 6 | ||
|} | |} | ||
</nowiki></ | </nowiki></pre> | ||
::gives... | ::gives... | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 33: | Line 36: | ||
|} | |} | ||
<includeonly>[[Category:Template | <includeonly>[[Category:Template]]<!-- Any categories for the template itself --></includeonly> | ||
<noinclude>[[Category:Template documentation | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 12:03, 27 July 2022
- Description
- This template is used to split a table header cell diagonally.
- Syntax
- Create a header cell containing: {{diagonal split header|<row_label>|<column_label>}}
- Parameters
-
- row_label
- A word or phrase to be used as a row label.
- column_label
- A word or phrase to be used as a column label.
- Sample
{| class="wikitable"
! {{diagonal split header|foo|bar}}
! a !! b !! c
|-
! x
| 1 || 2 || 3
|-
! y
| 4 || 5 || 6
|}
- gives...
bar foo
|
a | b | c |
|---|---|---|---|
| x | 1 | 2 | 3 |
| y | 4 | 5 | 6 |