Template:Vertical header/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
No edit summary
No edit summary
Line 17:
! {{vert header|nb=1|va=top|Unsortable column}}
|}
This is a template that helps create vertically-oriented column headers in tables. It even works for [[Wikipedia:Help:Sorting|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 [[Wikipedia:Help:Table#Combined use of COLSPAN and ROWSPAN|<code>colspan</code> or <code>rowspan</code>]], there must be no vertical bar <code>|</code> between the attributes and the template call.
 
== Parameter list ==
Line 40:
You can also use the {{code|<nowiki>! {{verth|Your text here}}</nowiki>}} shorthand.
 
An example below (from [[Wikipedia:Help:Sorting]]) with headers that span rows or columns (using ''rowspan'' and ''colspan''). '''Note''' that there is no vertical bar {{code|{{!}}}} between {{code|rowspan{{=}}2}} and {{code|{{((}}vert header...{{))}}}}
 
{|