More actions
Create a diagonal split header template for tables |
m Alyx en Thielles moved page Template:User:Alyx en Thielles/Diagonal split header to Template:Diagonal split header over redirect: Move back out of userspace to add documentation |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>style=" | <includeonly>style="line-height:1.2;padding:0.1em 0.4em;{{{style|}}}"|<div style="margin-left:2em;text-align:right">{{{2}}}</div><div style="margin-right:2em;text-align:left">{{{1}}}</div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 11:24, 27 July 2022
Template documentation (for the above template, sometimes hidden or invisible)
- 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 |
Visit Template:Diagonal split header/doc to edit this text! (How does this work?) (Refresh this text - why?)