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 Undo revision 194962 by Evon R'al (talk) User space page is a redirect.
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: <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>