Difference between revisions of "Template:Diagonal split header/doc"
From EVE University Wiki
(Add documentation for diagonal split header) |
Tag: Undo |
||
(2 intermediate revisions by the same user not shown) | |||
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> |
Latest revision as of 09:06, 12 September 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 |