Help:Tables

From Wikiversity
Jump to: navigation, search

This page provides some simple examples for getting started with tables in MediaWiki.

If you want some more detailed and complex examples, go to: Advanced Wikiediting/Tables.

Basic table
{|
| foo
| bar
|}

makes:

foo bar

Basic table - Full width
{| width="100%"
| foo
| bar
|}

makes:

foo bar

Basic table - Centred, 2-rows, gridlines
<center>
{| border=1 cellspacing=0 cellpadding=5
|-
! oo 
! ar
|-
| foo
| bar
|-
| boo
| far
|}
</center>

makes:

oo ar
foo bar
boo far