Help:Tables

Revision as of 18:17, 20 September 2007 by Temperal (talk | contribs)

Outside of the normal HTML table syntax, there is a separate wikisyntax specifically for tables.

Tables are started by {| and ended by |}. A new row is denoted by |-, while a new cell is denoted by | on a new line and || if there is more than one cell on a line.

The following is the basic syntax for tables:

{| style="background:yellow; border:1px solid black"
|+ Caption for the table
|- <!-- Start of a new row -->
| style =”width:75%” | The first cell || The second cell
|-
| An alternative scheme for cells
|Second cell
|}

This produces:

Caption for the table
The first cell The second cell
An alternative scheme for cells Second cell