Template:Table alignment/doc

Purpose
To make it simpler to align the columns in tables with less wikicode.

Usage
Place  just before the table and then add some classes to the table.

With the wikitable class the header cell content is always centered unless individually adjusted.

The col and default classes never affect the header cells (column, row, or anywhere) if the wikitable class is used. The col class overrides the default class.

If the wikitable class is not used, then col and default affect header cells.

Limitations

 * Column numbers up to  are supported. A table can have more columns but they cannot be aligned with this method.
 * On tables using  or , using the classes may not work well on those rows because the alignment appears in wrong cells. Normal table code like  can be added to individual cells, both to get the wanted alignment and override unwanted alignment.