Help:Tables

Tables are commonly used on organize information into columns. Although traditional HTML tags can be used to create a table ( part of the table definition, this class creates a table with a standard wiki appearance.
 * |+ provides the text for the caption.
 * ! provides the text for the column headers.
 * |- specifies the start of a new row.
 * | provides the text for individual cells in the table.
 * |} marks the end of the table.

Definition
All tables must start with an opening bracket and a pipe ( {| ) This tag must be at the start of a new line.

Following the tag, it is possible to provide any options that you wish to apply to the overall table. Commonly used options include the table class, positioning the table on the page, and default text alignment for all cells.

Tables are closed by using a pipe and a closing bracket ( |} ) This tag also must be at the start of a new line.

One common mistake is to forget to close the table and although the wiki will try to fix the problem, the results are generally not what will be wanted. If parts of the table are showing up in strange places on the page, make sure all of your tables are closed.

Rows
A new row is specified by using a pipe and a dash ( |- ) This tag must be at the start of a new line. The contents of the row are not provided on the same row.

The only text that can be added following the tag are parameters to change the formatting of the row. For example: |- style="text-align:left"

Cells
A cell is specified by using a pipe ( | ) Cells are generated either like this: | cell1 | cell2 | cell3 or like this: | cell1 ||  cell2 ||  cell3 The two types can be combined in various ways, if desired.

Any formatting options for the cell are supplied before the cell contents and separated from the contents using an additional pipe. For example: | style="text-align:left" |  cell1 |  style="text-align:center" |  cell2 | style="text-align:left" |  cell3

Header Cells
Header cells can be used to provide the column titles, and generally have bold text and/or a different background color for emphasis. They are specified similarly to standard, except an exclamation point ( ! ) is used instead of a pipe. Header cells can be specified anywhere in a table if desired, for example the fourth column in every row could be made into a "header" format.

When formatting is being provided for a header cell, one ! and one | must be combined: ! style="text-align:left" |  cell1

Captions
Captions are not generally used with this wiki's tables. If you need to create one, however, use the tag: !+ Caption