Template:Diagonal split header/doc

Usage
This template simulates a table header cell split diagonally, a device often used to compactly label headers of rows and columns, as in this example:

To use it, create a header cell using  followed by.

As the effect is achieved by drawing a diagonal line across the cell, the two headers are still part of the same cell and can easily overrun the line. A remedy is to pad the headers with non-breaking spaces, line breaks , and/or CSS (escape  signs as  ). The template user is responsible for checking that it does not overrun on common Web browsers.

Background colour and non-header cells
A third and fourth parameter can be added to change the background colour from the standard header cell colour. Changing it to  (or another colour such as , or  ) lets the template be applied to non-header cells.