Relax. Have fun. It's not an uptight wiki!

Help:Tables

From BigSoccer Wiki

BigSoccer Wiki Help Pages
  Help contents Editing 101 Tables
  Introduction Finding an article Categories
  Tutorial Creating a new article Moves & redirects
  Editing cheat sheet Keeping track of changes Templates & variables


Tables in wikicode

The page briefly describes wikicode pipe syntax for creating tables. There are other ways to make tables:

Some simple tables can be created using a fixed pitch font and preformatted text.
Wikicode also supports standard HTML table syntax (using <table>, <tr>, <td>, <th> and <caption> tags) although the use of wikicode pipe syntax is preferred.

Wikicode pipe syntax for tables

Wikicode table markup uses a special syntax (pipe syntax) as a shorthand for HTML markup tags. Wikicode table syntax is easier to use and usually considerably easier to read than the corresponding HTML.

Pipe syntax abbreviates HTML markup tags as shown below.

{|   replaces   <table>
|- replaces </tr><tr>
| replaces </td><td>
|} replaces </table>
optional tags
|+ replaces <caption>
! replaces <th>

Each of the wikicode symbols above must be on a new line.

A new cell can begin with a new line and a pipe. Alternatively, multiple cells can be placed on the same line if they are separated by double pipes ("||").

Similarly, column headings can be separated by either a new line and an exclaimation point ("!") or by double exclaimation points ("!!") on the same line.

Optional parameters (essentially the same as parameters in HTML) can modify the behavior of cells, rows, or the entire table. If multiple paramaters are set, each should be separated from other parameters by a space.

Table and row parameters should be on the same line as the table and row symbols.

Cell parameters must be separated from cell contents by a single pipe ("|").

All rows should have the same number of cells - or an equivalent number (as in HTML, colspan and rowspan parameters may be used to alter the actual number of cells in some rows).

Example table
wikicoderesulting table
{| style="background-color:#f0f0f0;"
|+ table caption
!header1!!header2!!header3
|-
|1||2||3
|-  style="text-align:center;"
|one||two||three
|- style="background-color:#c0c000;"
| colspan="2"|'''A, B'''||'''C'''
|}
table caption
header1header2header3
123
onetwothree
A, BC

External links

Discuss this page at Help talk:Tables.

All times are GMT -5. The time now is 05:34 AM.



 

Copyright © 2009 Big Internet Group, LLC. All rights reserved. PRIVACY POLICY. TERMS OF USE.
The BigSoccer name and logo and 'Share the Passion!' are service marks of Big Internet Group, LLC.
The BIG Network: Soccer | Aussie Rules Football | Travel | Cricket | Lacrosse | Music
Views expressed by the bloggers and users of BigSoccer do not represent the views of Big Internet Group, LLC.