Template:Table section

From Angelina Jordan Wiki

Documentation

This template outputs code that forms a 2-column spanning header row in a table, as seen in the examples below. It can be used at the top of a table or in the middle of it.

It is not intended for general use in all tables. Its main purpose is to facilitate the creation of infobox templates.

This template is used on a great many pages. Making any changes to it will cause lots of jobs to be added to the processing queue.

Usage

  • {{table section|heading}}
  • {{table section|label|colspan}}

The parameter colspan is the number of columns the heading should span. It defaults to 2, since infoboxes consist of two columns: labels on the left and content on the right.

Examples

  • <table class="wikitable">{{table section}}</table>
  • <table class="wikitable">{{table section|Heading}}{{table row|1|2}}{{table row|3|4}}</table>
Heading
1 2
3 4

As can be seen in these examples, tables on this wiki tend to be based on HTML-style table code rather than wiki-style (i.e., {| … |}), since the former seems to be slightly more "robust" (i.e., less error-prone) than the latter.