Help:Tables
From ResNetWiki
[edit] How to create tables in wiki
To create a new table of data, first specify the beginning of the table using { | and the end of the table using | } Each end needs to be on its own line. For example;
{|
Information
|}
You can add caption to the table by adding a | + under the beginning line of the table.
{|
|+ Caption goes here
Information
|}
You can specify a new table row using | - for the top and bottom of that row. They will need to be on their own lines. For example;
{|
|+ Caption goes here
|-
Information
|-
|}
To specify a new column on the top row, use the code | | between each column header. For example;
{|
|+ Caption goes here
|-
Column 1 || Column 2 || Column 3
|-
|}
You can label column headers by using ! at the beginning of the line, in the same manner as | to separate columns.
{|
|+ Caption goes here
|-
! Column 1 !! Column 2 !! Column 3
|-
|}
Will look like
| Column 1 | Column 2 | Column 3 |
|---|
To add a row and specify a row header, place a ! at the beginning of the row header line. You can at items to that row by adding a | under that and separating cell items by | |. For example
{|
|+ Caption goes here
|-
! Column 1 !! Column 2 !! Column 3
|-
! Row A
| Item A || Item B || Item C
|-
! Row B
| Item D || Item E || Item F
|}
Will look like
| Corner | Column 1 | Column 2 | Column 3 |
|---|---|---|---|
| Row A | Item A | Item B | Item C |
| Row B | Item D | Item E | Item F |
Finally, to add a border (or grid) simply add border = "#" on the top line. # is a single digit (not sure what range there is) So
{| border = "1"
|+ Caption goes here
|-
! Column 1 !! Column 2 !! Column 3
|-
! Row A
| Item A || Item B || Item C
|-
! Row B
| Item D || Item E || Item F
|}
Will look like
| Corner | Column 1 | Column 2 | Column 3 |
|---|---|---|---|
| Row A | Item A | Item B | Item C |
| Row B | Item D | Item E | Item F |

