|
row1-column1 | row1-column2 | |
row2-column1 | row2-column2 |
If, on the other hand, a newline is the row delimiter, then each line in the Wiki box represents a row in the table. So,
||row1-column1|row1-column2 row2-column1|row2-column2||
produces the same table:
row1-column1 | row1-column2 | |
row2-column1 | row2-column2 |
You can span across multiple columns (colspan) in a row with the following syntax:
||row1-column1|row1-column2|row1-column3||row2-columns123||row3-column1|row3-columns23||
or
||row1-column1|row1-column2|row1-column3
row2-columns123
row3-column1|row3-columns23||
produces
row1-column1 | row1-column2 | row1-column3 |
row2-columns123 | ||
row3-column1 | row3-columns23 |
Note that partial column spanning only occurs in the last columns of a table. For instance, there is no way to span across the first two columns of a three column table.
Use PluginFancytable to create sortable and good looking tables.
Code :
{FANCYTABLE(head="row1-column1|row1-column2")} row2-column1|row2-column2 {FANCYTABLE}
row1-column1 | row1-column2 |
---|---|
row2-column1 | row2-column2 |
If you need to have multiple rows in a single cell of a table, use three percent signs to create line breaks, like this:
||Sample Table
row1-col1|row1-col2%%%second line%%%third line|row1-col3
row2-col1|row2-col2|row2-col3%%%second line||
produces:
Sample Table | ||
row1-col1 | row1-col2%%%second line third line | row1-col3 |
row2-col1 | row2-col2 | row2-col3%%%second line |
To center any text, including text in a table, use two colons before and two colons after:
::This text is centered.::
produces:
||::Sample Table::
row1-col1|row1-col2
row2-col1|row2-col2||
produces:
Sample Table
| ||
row1-col1 | row1-col2 | |
row2-col1 | row2-col2 |
Use plugincenter.
Code :
{CENTER()}||Sample Table row1-col1|row1-col2 row2-col1|row2-col2||{CENTER}
Sample Table | ||
row1-col1 | row1-col2 | |
row2-col1 | row2-col2 |
If you need to right-align a table itself, you must use a DIV structure, and you must use both the align and float commands, or IE users won't see it aligned correctly. Use this:
{DIV(class=>class, type=>div, align=>right, float=>right)}||::Sample Table::
row1-col1|row1-col2
row2-col1|row2-col2||{DIV}
to produce:
Sample Table
| ||
row1-col1 | row1-col2 | |
row2-col1 | row2-col2 |
Wiki-Syntax Links
Wiki-Syntax Lists
Wiki-Syntax Images
Wiki-Syntax Text
Wiki-Syntax Separators
Wiki-Syntax Special Characters
Advanced Wiki Syntax Usage Examples
PluginFancytable