Template:Vertical header/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{documentation subpage}} {{lua|Module:Vertical header}} {|{{table|sort|class=floatright}} ! {{vert header|stp=1|Regular column}} ! {{vert header|stp=1|Vertical value column}}..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 1:
{{documentation subpage}}
{{lua|Module:Vertical header}}
{{Commons Import}}
{|{{table|sort|class=floatright}}
! {{vert header|stp=1|Regular column}}
Line 16 ⟶ 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 39 ⟶ 41:
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...{{))}}}}
{|
| |||