Template:Autotable5/doc

The Template: will auto-number each row in a table as a counter in column 1, while showing 5 other columns (or blank data to show fewer columns) in the table. The rows are detected by data in the first or second column of each row (parameters 1 or 2, 6 or 7, 11 or 12, 16 or 17, etc.). To set column headers, set option, then start wikitable headers above the template, followed by end-table token "&#124;}" on a line after the template, or after extra bottom rows, such as table footnotes (see below: Special rows).

The format style of each column can be set by separate format parameters:  (the number/rank), ,  ,... . For example, to set the alignment, font-size or font color:

Any style set for a column is propagated down the column to every cell in the column, unlike hand-coded wikitables where the style must be repeated as markup on every row.

The maximum number of rows for is 80 rows (400 parameters), or for  the maximum is 280 rows, and any additional data parameters will be ignored beyond row number 280 (beyond parameter #1400).

Parameters
The following are the parameters:
 * - to set parameter 1, or just bar "&#124;..." up to parameter 1400, as 5 parameters per each of 280 rows.
 * - used to allow wikitable markup above/below template.
 * - to set style format of numbers.
 * - to set style of column 1 data.
 * - to set style of column 2 data.
 * - to set style of column 3 data.
 * - to set style of column 4 data.
 * - to set style of column 5 data.

When both the first and second parameters of a row are empty/blank, then the row is not displayed, as at the end of the table.

Examples
The following show example usage: The data in column 2 is set to blue font by.
 * Results:

Special rows
Although the main purpose of {Autotable5_big} is to quickly auto-number over 200 rows, it also allows for special rows at top or bottom, or skipping of rows. The rows can be added as follows:
 * top rows: with option "headers=yes" then top rows can be added under the column headings, such as followed by  where the row number will appear as "-" (or use "&amp;nbsp;" to have a blank row number).
 * bottom rows: with option "headers=yes" then bottom rows can be added at the end of the table, in manner of top rows.
 * footnote rows: a typical end-of-table footnote row can be added as followed by line  where the note text will span all 6 columns, and wrap across the width of the table.
 * hidden rows: when both columns 1 and 2 are blank, then the row will be hidden, and the row number skipped to the next number in sequence.
 * blank rows: to show empty rows or columns, a non-breaking space ("&amp;nbsp;") can be placed in either column 1 or column 2, and all other column cells could be empty, such as the 5 parameters:  as a blank row.
 * equal-sign text: to show an equals sign ("=") inside a column, then use a blank parameter, or put the text inside nowiki tags:  &lt;nowiki>2+2=4&lt;/nowiki>; beware that using the form "1=2+2=4" would require all parameters to be numbered, which would be contrary to the auto-numbering of the table.

In general, the auto-numbered table can contain a vast range of data and text, including wikilinks, other transcluded templates, or wp:autosized image thumbnails on the numbered rows.

Performance considerations
Both Template:Autotable5 and Template:Autotable5_big were designed to run as quickly as possible, with minimal expansion depth (3 levels). However, formatting the table takes 0.1-3.0 seconds, depending on the number of rows, because the support for 280 rows means the larger template must check numerous (over 2 thousand) parameter values. A small table of only 10 rows will format in just over one-tenth second with {Autotable5}.