Jump to content

Help:Introduction to tables with Wiki Markup/2

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Evolution and evolvability (talk | contribs) at 11:43, 6 December 2015 (ce). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Editing tables
The basics

Expanding tables
Adding rows and columns

Summary
Review of what you've learned




Enhanced editing toolbar
Enhanced editing toolbar


When you use the toolbar button to insert a table, it actually inserts markup text into the article for you to edit. There are two common ways to lay out this markup that you may see around Wikipedia


Data is arranged like a table

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

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
|}

Both of the above examples look the same in an article.

Caption
Header C1 Header C2 Header C3
R1C1 R1C2 R1C3
R2C1 R2C2 R2C3


Whether you've just inserted a new table, or are editing an existing one, changing the text in these cells determines what table displays in the article.