Help:Tables

table.prettytable th { padding: 1em; } Tables are great for organizing data and information in a user-friendly way. They can be made using XHTML, wiki coding or a combination of the two. This guide will mainly cover the wiki coding portion as the other has hundreds of great, publicly available tutorials on the Internet. The main advantage of wiki coding is that it tends to be much simpler than XHTML and easier to edit. However, it can occasionally be limited in functionality, making XHTML an important part of advanced tables.

Table Building Terms
Some characters cannot be used in certain situations, usually in complex templates. Some templates to use if such situations arise are as follows:  |  - Produces a pipe ( | )  |-  - Produces a piped hyphen ( |- )

View all workarounds here.

Stylization
These are some of the most commonly used table styles. Knowledge of XHTML greatly aids in this section. '''"x" indicates that a number must be placed between the quotation marks. The default unit is pixels, where appropriate.'''

Basic Tables
The following: results in:
 * }

Sortable Tables
For sortable tables, a key is sometimes required to determine the sorting possibilities. It can be used by typing the following:

The following: produces:
 * }

Irregularly Celled Tables
The following: produces:
 * }