Help:Table editing

{| cellspacing="7" style="width: 100%; background: #EFFBF5; border: 1px solid silver; margin-top: 10px;"
 * style="background: #A1C2CF; border: 1px solid silver; padding: 0.2em 0.4em;" | How to use a table

Here is an example of a basic table.

The above example gives you a table that looks like this:

Rows and columns

The entire table is encased with curly brackets and a vertical bar character (a pipe). So use  to begin a table, and   to end it. Each one needs to be on its own line:

Every new row of a table must begin with a pipe and a hyphen  on its own line.

There are two ways to add a cell to each row. Either make a new line and start it with a pipe  or put two pipes   between each cell. The following example shows how both are used for the same result.

Creates:

Formatting

There are three ways to add formatting to a table: apply it to a whole table, apply it to a single row, or apply it to a single cell. Table formatting requires a little html knowledge.

Whole table

On the first line of your table, after the  you can specify some properties of your table. For example, add a border to your table.

Creates:

Single row

On the line declaring each new row  you can specify properties of that line. For example, to change the background color of a row.

Creates:

Single cell

For each cell of a table, you can specify additional properties that only apply to that cell. To do that you need to add  to the front of each cell you want to change.

Creates:

Notice that if you use the double pipes  to separate your cells, the additional cell formatting comes after the double pipe and does not replace it.

GWW standard formatting

In many cases you will want your tables to look consistent with other tables on GWW. A template has been provided that will apply the styles to the whole table.

Creates:

For more information on how to use the template, go to STDT.

Advanced

For more information on how to use tables, go to the Help:Table at wikimedia.
 * }