Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Diagonal split header/doc: Difference between revisions

Template page
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: <code><nowiki>{{diagonal split header|<row_label>|<column_label>}}</nowiki></code>
; Syntax
: Create a header cell containing: {{T|diagonal split header|row_label|column_label}}
 
; Parameters
; Parameters
: <code>row_label</code>
:; row_label
:: A word or phrase to be used as a row label.
:: A word or phrase to be used as a row label.
: <code>column_label</code>
:; 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 output
 
:<code><nowiki>
; 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></code>
</nowiki></pre>
::gives...
::gives...
{| class="wikitable"
{| class="wikitable"
Line 33: Line 36:
|}
|}


<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
<includeonly>[[Category:Template]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<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