Search results
Results from the WOW.Com Content Network
Tables in Wikipedia, particularly large ones, can look intimidating to edit, but the way they work is simple. Components of tables Whether 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.
{| |+ caption table code goes here |} To start a new table row, type a vertical bar and a hyphen on its own line: "|-". The codes for the cells in that row start on the next line. {| |+ The table's caption |-row code goes here |-next row code goes here |} Type the codes for each table cell in the next row, starting with a bar:
You can add a table using HTML rather than wiki markup, as described at HTML element#Tables. However, HTML tables are discouraged because wikitables are easier to customize and maintain, as described at manual of style on tables. Also, note that the <thead>, <tbody>, <tfoot>, <colgroup>, and <col> elements are not supported in wikitext.
The following assumes the syntax is a whole table row in one source line starting with a pipe and with double pipe between cells. It does not work with partially compressed table wikitext either (such as for tables with row headers). A table with any non-compressed wikitext can be completely compressed by pasting the table into Excel2Wiki. Do ...
Table alignment}} can be used to align the cells in a whole column without adding code to each cell. For example, left aligning the first column, and center aligning the fourth column. For example, left aligning the first column, and center aligning the fourth column.
For years in HTML, a table has always forced an implicit line-wrap (or line-break). So, to keep a table within a line, the workaround is to put the whole line into a table, then embed a table within a table, using the outer table to force the whole line to stay together. Consider the following examples: Wikicode (showing table forces line-break)
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
One method of hiding rows in tables (or other structures within tables) uses HTML directly. [1] HTML is more complicated than MediaWiki table syntax, but not much more so. In general, there are only a handful of HTML tags you need to be aware of