Wikieducator tutorial/Tables

From WikiEducator
Jump to: navigation, search
Road Works.svg Work in progress, expect frequent changes. Help and feedback is welcome. See discussion page. Road Works.svg


Overview

In this subsection we cover creation of wiki tables

Syntax You get Explanation
Syntax for a simple wiki table with two rows and two cells is given below:

{| class="wikitable"
|-
! header 1
! header 2
|-
| row 1, cell 1
| row 1, cell 2
|}

header 1 header 2
row 1, cell 1 row 1, cell 2

Here the pipe (vertical bar) codes function exactly the same as HTML table markup. The code |- marks the rows and | marks the Column. A row of column headings is identified by using "!" . 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, as seen below:
{|

  table code goes here

|}




External links