Help:Tables

''This page needs to explain the "source commands" you use without the Rich Text Editor. This is important when fixing the mess people sometimes make''

Tables are a great tool to help organize your wiki pages to display data, facts and other information. Tables can be created in both the Rich Text Editor as well as in Wikitext. Below are instructions for creating tables in both editors.

Rich Text Editor (RTE)
The RTE is the default editor for all new wikis, and can be enabled for older wikis by request at Special:contact.

To create a table:

1. In edit mode, click on the table button under the "Insert" section of the editing toolbar.

2. A popup box will appear, and allow you to choose the parameters you want for your table.



3. Once you click ok, a table will appear in your text. You can now input content.

4. Should you need to change the table paramenters, simply right click, and make the needed changes.



Wikitext Editor
Some HTML table tags are currently supported by MediaWiki, but there is no guarantee these will not be deprecated. For this reason, you are advised to use the wiki syntax, which is described on this page.

 Markup 

 Notes 
 * The entire table begins with  and ends with the required.
 * A caption is a succinct way to describe your table, and can be included with  on the line after.
 * Table rows are horizontal groups of cells in the table. A row begins with  and ends at the next row.
 * Table headings are cells with headings in them, and are often rendered in a bold font. They begin with .  Note that parameters are still separated from the actual content of the cell with , however
 * Table data cells fill out the rest of the table. A cell begins with  or   and ends at the next cell.

Each row must have the same number of cells as the other rows, so that the number of columns in the table remains consistent (unless there are cells which span several columns or rows, but this is not discussed here). For empty cells, use the non-breaking space  as content to ensure that the cells are displayed.

 Complex layout (made simple)  This advanced example shows some of the options available for making tables. You can play with these settings in your own table to see what effect they have. Not all of these techniques may be appropriate in all cases; just because you can add colored backgrounds, for example, doesn't mean it's always a good idea. Try to keep the markup in your tables relatively simple &mdash; remember, other people are going to be editing the page too.

Your table code reflect the table structure. Although it is possible to compose complex layout as one table, it is generally not advisable. For simplicity, it is best to split the layout into small units.

 Split it up  While you can nest table

It may be better to split the tables up:

 Don't use table for simple box  Table code should be used for tables only. For simple boxes, use  instead. For example, instead of:

You may use

 The complete code 



Next steps

 * Categories
 * Templates
 * Infobox

de:Hilfe:Tabellen nl:Help:Tabellen