Template:Vertical header/doc

This is a template that helps create vertically-oriented column headers in tables. It even works for sortable columns.

Although this template was made with table headers in mind, it can work with regular cells as well.

If the header cells have other attributes, for example  or , there must be no vertical bar   between the attributes and the template call.

Parameter list

 * 1 — The desired text; can contain wikilinks . You can escape the equals sign either by using or by explicitly mentioning the   parameter.
 * nb — Give any non-empty value in order to apply a template to the text.
 * va — Vertical alignment . Default is.
 * stp — Give any non-empty value in order to apply a top padding to the cell (useful if the header is bottom-aligned; required for sortable columns).
 * mw — Manual width; override the default value, which was automatically generated based on the number of line breaks (you can use,   or any other combination).
 * style — Additional styles for the  containing the rotated text. May contain double quotes.
 * cellstyle — Additional styles for the entire cell. May contain double quotes. Use this instead of the cell's  attribute. Use   instead of   if you need it for the header of a sortable column.

Examples

 * — basic example
 * — produces an explicitly sortable, no-bold, sortable header
 * — produces an unsortable, top-aligned table header
 * — produces an unsortable header spanning two columns, with a gold background; use no vertical bar after

You can also use the  shorthand.

An example below (from Help:Sorting) with headers that span rows or columns (using rowspan and colspan). Note that there is no vertical bar  between   and

{|
 * - style=vertical-align:top;


 * }

Compatibility
The following browsers have been tested on combinations of Debian 6.0, Mac OS X 10.8, Ubuntu 9.10, Ubuntu 15.04, Windows 7, Windows Server 2008 R2 and Windows 10. The earliest version known to work is highlighted in green. The latest tested configuration that did not work is highlighted in red.


 * Should theoretically work on the following browsers as well (please confirm) :


 * Notes :
 * In Internet Explorer 5–10, the text goes from top to bottom instead of going from bottom to top.
 * Firefox support for vertical text and rotation began in version 25, but it was unstable until version 43, or possibly 41.