GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Help:Introduction to tables with Wiki Markup/All - Wikipedia
Tables are a common way of displaying data. This tutorial provides a guide to making new tables and editing existing ones. For guidelines on when and how to use tables, see the Manual of Style. The easiest way to insert a new table is to use the editing toolbar that appears when you edit a page (see image above). Clicking the Tables in Wikipedia, particularly large ones, can look intimidating to edit, but the way they work is simple. Components of tablesWhether you've just inserted a new table, or are editing an existing one, changing the text in the table cells determines what the table looks like to a reader. But you can do more than just change text. A table consists of the following basic elements, all of which you can modify:
Blank spaces at the beginning and end of a cell are ignored. LayoutWhen you edit an existing table, you'll probably see one of two common ways that the table is laid out: Data is arranged like a tableThis 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 {| class="wikitable" |+ Caption |- ! Header C1 !! Header C2 !! Header C3 |- | R1C1 || R1C2 || R1C3 |- | R2C1 || R2C2 || R2C3 |} Cells are arranged verticallyWith 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 |} To a reader, both of the above examples will look the same:
Expanding tablesIt is common to want to edit an existing table by adding just one extra column or row of information. Adding a rowTo add an extra row into a table, you'll need to insert an extra row break and the same number of new cells as are in the other rows. The easiest way to do this in practice, is to duplicate an existing row by copying and pasting the markup. It's then just a matter of editing the cell contents. Make sure that you preserve the end of table markup, Adding a columnTo add an extra column to a table, you'll need to add a single extra cell in the same position to each row. Preview your changesPreviewing your edits is especially important for tables; it is easy to make a minor error that breaks table formatting. See also
| ||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |