Help:Tables

From Appropedia

Jump to: navigation, search

To insert a table you can click the insert table button Image:Button_insert_table.png on the edit toolbar that appears when you click edit on a page.

This is what the edit toolbar look like.
This is what the edit toolbar look like.

Which will insert the following:

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

[edit] Sortable table

Sortable tables can be created by using class="wikitable sortable". As shown in the following example:

{| class="wikitable sortable"
|-
! Run # 
! Temperature (°F) 
! Humidity (%)
|-
| 1 
| 78 
| 42
|-
| 2 
| 76 
| 55
|-
| 3 
| 74 
| 41
|}
that creates (notice the sort buttons next to the headings)
Run # Temperature (°F) Humidity (%)
1 78 42
2 76 55
3 74 41

[edit] More info

See Help:Table examples for more examples.

Personal tools