Template:Diagonal split header

From FlightGear wiki
Jump to navigation Jump to search

The following template description is not displayed when the template is inserted in an article.


This template will make a cell appear as being split from top left to bottom right. It can be for example be used to have a separate row heading and column heading in the same cell.

Note Long headings might overlap cell borders.


{{diagonal split header|row text|column text|background}}

The row and column heading parameters are mandatory. The background parameter is optional.

row text
Text in the lower right half of the cell for the rows.
column text
Text in the upper right half of the cell for the columns.
Optional background color. Defaults to #f1f1f1 (typically used in headings, see below).
For table cells in tables using the wikitable class backgrounds are:
  • #f1f1f1 for headings.
  • #f9f9f9 for cells.


{| class="wikitable"
! {{diagonal split header|Rows|Columns}}
! Column 1 !! Column 2
! Row 1
| A || B
! Row 2
| C || D
Column 1 Column 2
Row 1 A B
Row 2 C D

See also