Help:Wiki Tables
From SASSA
SASSA Home Page ⇒ Help Home Page ⇒ SASSA Wiki Help ⇒ Creating Tables in SASSA Wiki
Creating Tables in SASSA Wiki
Tables can be useful both for displaying data and for arranging page content. Use the following instructions to create a table.
- The entire table must be encased with curly brackets and a vertical bar to show SASSA Wiki where the table begins and ends.
{|
table code goes here
|}
- An optional table caption can be included using a vertical bar and a plus sign.
{|
|+ The table's caption
the table code goes here
|}
- Each new table row should be separated by a vertical line and a hyphen.
{|
|+ The table's caption
|-
cell code goes here
|-
cell code goes here
|}
- The first cell in each row should start with a vertical bar, and subsequent cells in that row should be separated by two vertical bars with the cell content between.
{|
|+ The table's caption
|-
|Cell 1||Cell 2||Cell 3
|-
|Cell 4||Cell 5||Cell 6
|}
- Column and row headings can be included using an exlamation mark (!) instead of a horizontal line.
{|
|+ the table's caption
!Column heading 1!!Column heading 2!! Column heading 3
|-
|Cell 1||Cell 2||Cell 3
|-
|Cell 4||Cell 5||Cell 6
|}
{|
|+ the table's caption
! !!Column heading 1!!Column heading 2!! Column heading 3
|-
!Row heading 1
|Cell 1||Cell 2||Cell 3
|-
! Row heading 2
|Cell 4||Cell 5||Cell 6
|}
- To add a border to the table.
{| border="1"
|+ the table's caption
! !!Column heading 1!!Column heading 2!! Column heading 3
|-
!Row heading 1
|Cell 1||Cell 2||Cell 3
|-
! Row heading 2
|Cell 4||Cell 5||Cell 6
|}
The final table looks like this:
| Column heading 1 | Column heading 2 | Column heading 3 | |
|---|---|---|---|
| Row heading 1 | Cell 1 | Cell 2 | Cell 3 |
| Row heading 2 | Cell 4 | Cell 5 | Cell 6 |
Help with creating more complex tables can be found at wikimedia's web site
← Back to SASSA Wiki help

