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.

If your browser does not support CSS property that makes this template possible, it gracefully degrades to the default display of the table columns.

The 1 text can contain wikilinks. You can escape the equals sign either by using or by explicitly mentioning the 1 parameter. Styles may contain double quotes.

Examples

 * ! – basic example
 * ! – produces a no-bold, sortable header
 * ! – produces an unsortable, top-aligned table header
 * ! colspan="2" – produces a header spanning two columns, with a gold background; use no vertical bar after colspan

You can also use the ! shorthand.

An example below (from Help:Sortable tables) with headers that span rows or columns (using rowspan and colspan). Note that there is no vertical bar between  and {{vert header...}}

TemplateData
{	"params": { "1": {			"label": "Text", "type": "content" },		"nb": { "label": "No bold", "description": "Set to use a normal font weight", "suggestedvalues": [ "y" ]		},		"va": { "label": "Vertical alignment", "type": "string", "suggestedvalues": [ "bottom", "top", "middle" ],			"default": "bottom" },		"mw": { "label": "Manual width", "description": "Override the automatic generation based on the number of br line breaks", "example": "5em" },		"class": { "description": "Additional classes for the cell, for example, |class=unsortable would stop the column from being sortable", "example": "unsortable", "type": "string", "label": "Cell additional classes" },		"style": { "label": "Div additional styles", "description": "Additional styles for the div containing the rotated text.", "type": "string" },		"cellstyle": { "description": "Additional styles for the entire cell. May contain double quotes. Use this not the cell's style=\"\" attribute. Use background-color: not background: for sortable columns.", "label": "Cell additional styles", "example": "background-color:red", "type": "string" }	} }