Jump to content

Help:Introduction to tables with Wiki Markup/2/markup examples

From Wikipedia, the free encyclopedia

Data is arranged like a table

[edit]

This is useful when there aren't too many columns and the cell contents are short (e.g. just numbers). This is the markup layout that the table icon button will create.

{| class="wikitable"
|+ Caption
|-
! Header C1 !! Header C2 !! Header C3
|-
| R1C1      || R1C2      || R1C3
|-
| R2C1      || R2C2      || R2C3
|}

Cells are arranged vertically

[edit]

With lots of columns, or cells with long contents, putting each cell on a new line can improve readability of the markup.

{| class="wikitable"
|+ Caption
|-
! Header C1
! Header C2
! Header C3
|-
| R1C1
| R1C2
| R1C3
|-
| R2C1
| R2C2
| R2C3
|}