Template:Diagonal split header

From PINE64
Jump to navigation Jump to search

Allows you to do tables like this:

To
From
A B C
1 X Y Z
2 U V W
3 R S T

With code like this:

{| class="wikitable plainrowheaders" border="1"
! scope="col" {{Template:Diagonal split header|From|To}}
! scope="col" |A !! B !! C
|-
! scope="row" |1
| X
| Y
| Z
|-
! scope="row" |2
| U
| V
| W
|-
! scope="row" |3
| R
| S
| T
|}