Basic markup
Tables are created via use of the double pipe character: ||
. Lines beginning with this markup denote the beginning of table rows. Appearance of this character within a line denotes table cells. A border has been added to this table for visual purposes; default border width is 0.
Example 1. Basic table
|| border=1
|| cell 1 || cell 2 || cell 3 ||
|| cell 1 || cell 2 || cell 3 || |
cell 1 | cell 2 | cell 3 |
cell 1 | cell 2 | cell 3 |
|
Header cells can be created by placing ! as the first character of a cell:
|| border=1
||! cell 1 ||! cell 2 ||! cell 3 ||
|| cell 1 || cell 2 || cell 3 || |
cell 1 | cell 2 | cell 3 |
cell 1 | cell 2 | cell 3 |
|
This markup does not extend to !!, !!!, etc
Alignment of cell contents
Cell contents may be aligned left, centered, or aligned right.
- To left-align contents, place the cell contents next to the leading
||
.
- To center contents, add a space before and after the cell contents.
- To right-align contents, place a space before the cell contents and leave the cell contents next to the trailing
||
.
Example 2. Changing alignment of cell contents
|| border=1 width=100%
||!cell 1 ||! cell 2 ||! cell 3||
||left-aligned || centered || right-aligned|| |
cell 1 | cell 2 | cell 3 |
left-aligned | centered | right-aligned |
|
Example 3. Default alignment of cell contents
|| border=1 width=100%
||!cell default||!cell left ||
||default-aligned||left-aligned || |
cell default | cell left |
default-aligned | left-aligned |
|
Notice that the header and detail cells have different defaults.
Example 4. Column spanning
|| border=1 width=100%
|||||| right column ||
|||| middle column ||||
|| left column ||||||
|| left column || middle column || right column ||
|
right column |
middle column |
left column |
left column | middle column | right column |
|
Example 5. Various markups
|| border=1
|| [++Events Calendar++] ||||||||||
|| '''May 2005''' || '''June 2005''' || '''July 2005''' || '''August 2005''' || '''September 2005''' ||
||%sp%'''10'''%%6:30 - 8:30 Big Meeting[[<<]][[<<]]%sp%'''17'''%%7:00 - 8:30 Bigger Meeting[[<<]][[<<]]%sp%'''24'''%%7:00 - 8:30 Biggest Meeting|| || || || ||
|| '''October 2005''' || '''November 2005''' || '''December 2005''' || '''January 2006''' || '''February 2006''' ||
|| || || || || ||
|
Events Calendar |
May 2005 | June 2005 | July 2005 | August 2005 | September 2005 |
106:30 - 8:30 Big Meeting
177:00 - 8:30 Bigger Meeting
247:00 - 8:30 Biggest Meeting | | | | |
October 2005 | November 2005 | December 2005 | January 2006 | February 2006 |
| | | | |
|
<< | DocumentationIndex | >>