Help:Table

From Bogleheads
Jump to: navigation, search
For a basic introduction, see the Introduction to tables on Wikipedia. For style considerations, see Manual of Style/Tables, also on Wikipedia.

A table is an arrangement of columns and rows used to organize and position data. Tables can be created on wiki pages using special wikitext syntax, and there are many different styles and tricks that can be used to customise them.

Bogleheads wiki specifics

The Wikipedia standard for tables uses class="wikitable" and can get automatically generated by using the table button on the Edit toolbar, which results in:

Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example

The same table using the {{Table}}, which is intended is used to standardize the appearance of Excel to Wiki generated tables, results in:

Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example

Clearly there is an inconsistency in the format depending on which method is used. Editors are reminded to exercise careful consideration before choosing which method is used. For consistency reasons, the general guideline for the wiki is to follow Wikipedia's Manual of Style.

Centering the columns of a table

If you want to have columns centered in a table, then add style="text-align:center" after class="wikitable" which results in:

Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example

Create tables from a spreadsheet

Use excel2wiki (mirror site) to create tables directly from a spreadsheet. The developer no longer supports this project.

See also