Help:Wikitable

A wikitable is an arrangement of columns and rows used to organize and position data. Tables are useful, and there are many ways and tricks that can be used.

When editing pages a generic wikitable can be added with the or  (Insert a table) link in the edit toolbar. The following text is inserted when "Insert a table" is clicked:

 The sample text ("header 1", "row 1, cell 1" etc) is to be replaced with actual data.

Wiki table markup summary

 * The above marks must start on a new line except the double  and   for optionally adding consecutive cells to a line. However, blank spaces at the beginning of a line are ignored.
 * XHTML attributes. Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
 * Cells and caption ( or ,   or  , and  ) hold content. So separate any attributes from content with a single pipe . Cell content may follow on same line or on following lines.
 * Table and row marks ( and  ) do not directly hold content. Do not add pipe  after their optional attributes. If a pipe is added improperly after attributes for the table mark or row mark, the parser will delete it and any final attribute that was touching the improper pipe!
 * Content may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headings, or nested tables, must be on its own new line.
 * Escaping to insert a pipe character into a table use the &lt;nowiki&gt; markup

A simple table


As it appears in a browser:

A more complex example


As it appears in a browser: