Template:Sort table3

{{Documentation|content=

The Template:Sort_table3 generates a table of 2 or 3 columns, with column headers, from a list of parameters (either in pairs or groups of 3). When "col3head=xx" is specified, then the table switches to 3-column format, with parameters 4/5/6 as the second row. The parameter "title=xx" can be used to insert an optional title at the top of the table. The table can have up to 175 rows (parameter 350, or parameter 525 when 3 columns).

As a general utility template, {sort_table3} can be used to create a general sorted list, such as airport destinations formatted by Template:Airport destination list.

Parameters
The following are parameters:
 * 1 & 2     - the data for column 1 & 2
 * 1, 2 & 3  - the data for columns 1, 2 & 3 when col3head=xx
 * bg - background color of the title & headers area [optional]
 * title- the title at top of the table [optional]
 * col1head - the header over column 1
 * col2head - the header over column 2
 * col3head - the header over column 3 [optional]
 * col1class - the format class applied to column 1 (sortable, unsortable)
 * col2class - the format class applied to column 2 [optional]
 * col3class - the format class applied to column 3 [optional]
 * foot     - a footnote line as last row of the table [optional]