Difference between revisions of "Help:Tables"

From THCCwiki
Jump to navigation Jump to search
m (+HelpEditing)
m (Links)
Line 102: Line 102:
 
==More==
 
==More==
  
* {{HelpEditing}}
+
{{HelpEditing}}
 
* http://en.wikipedia.org/wiki/Help:Table
 
* http://en.wikipedia.org/wiki/Help:Table
 
* http://www.mediawiki.org/wiki/Help:Tables
 
* http://www.mediawiki.org/wiki/Help:Tables

Revision as of 21:12, 16 May 2009

While it is possible to create table via raw HTML, the wiki allows a simpler style.

Tables start with a curly bracket and a vertical bar character (a pipe) "{|" and end with a pipe and curly bracket "|}".

To start a new table row, type a vertical bar and a hyphen on its own line: "|-".

Each cell in a row is on a new line which starts with just a vertical bar character.

This input  
{|
|-
|AAAA
|BBBB
|CCCC
|-
|DDDD
|EEEE
|FFFF
|}
  produces  
AAAA BBBB CCCC
DDDD EEEE FFFF

There are lots of other options, but the simplest is to add borders.

This input  
{| border="1"
|-
|AAAA
|BBBB
|CCCC
|-
|DDDD
|EEEE
|FFFF
|}
  produces  
AAAA BBBB CCCC
DDDD EEEE FFFF

Change the leading vertical bar character to an exclamation mark to change a cell into a heading.

This input  
{|
|-
!A
!B
!C
|-
|DDDD
|EEEE
|FFFF
|}
  produces  
A B C
DDDD EEEE FFFF

More

Editing Bullet.gif Markup Bullet.gif Links Bullet.gif Images Bullet.gif Tables Bullet.gif Templates Bullet.gif TOC Bullet.gif