Help:Table/Manual tables


 * style="padding: 2em;" |

If you don't have a way of creating tables automatically, or want more control over them, this tutorial should explain how. So, a basic table, as discussed, is:

 As you can see, columns headers are created by. Cells are created by. The divider between rows is. You can add an extra column by just sticking  at the end of the last column name. To fill the cells in that column, you need to add another cell to each row: fill it by typing. If you want to add an extra row, just add  to the table, and fill it with however many cells are appropriate.

To recap, the markup is:


 * The above markup must start on a new line except the double  and   for optionally adding consecutive cells to a line. Blank spaces at the beginning of a line are ignored.
 * HTML attributes: All table markup, except table end, optionally accepts one or more HTML attributes on the same line.
 * 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 markup ( 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 or row markup, the parser will delete it and any final attribute that was touching the improper pipe.
 * Content may follow its cell markup on the same line after any optional HTML attributes or on lines below the cell mark. Content that uses wikimarkup 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 nowiki markup

wikitable

is used with a lot of tables on WikiQueer and adds some standard styling.

border

Even though the  class includes a border, it is a good practice to also include. If the page with the table is ported to another wiki without the  class, then the table will have no borders without it.