Other Language: Português

Tables in 'Tavi are denoted by lines enclosed in pairs of vertical bars (||). Pairs of vertical bars are used to separate cells in a table row. Multiple pairs of vertical bars may be used to create cells that span several cell widths. As always, an example is worth more than words can tell:

 ||cell 1||cell 2||cell 3||cell 4||
 ||||big ol' cell||||'nuther one||
 ||||||||this one takes up a whole line||
 ||cell 1||||||cell 2||

becomes:

cell 1cell 2cell 3cell 4
big ol' cell'nuther one
this one takes up a whole line
cell 1cell 2

Advanced options

As of version 0.24 tables uses CurlyOptions to extend the possibilities of table formatting. The following options are available for use when creating tables:

Option Value Comment
Cell options
l none Left aligns cell contents (default)
c none Centers cell contents
r none Right aligns cell contents
t none Aligns cell contents at top
b none Aligns cell contents at bottom
B none Sets contents in bold
I none Sets contents in italics
w <number> The cell spans over <number> rows. (default value if value not present is two)
Tb <number> If used on first line, sets border-attribute. Defaults to 1
Class and styles applied to table
Tc <string> Adds a 'class=<string>' to table, <table>
Ts <string> Adds a 'style=<string>' to table, <table>
Rc <string> Adds a 'class=<string>' to row, <tr>
Rs <string> Adds a 'style=<string>' to row, <tr>
C <string> Adds a 'class=<string>' to cell, <td>
s <string> Adds a 'style=<string>' to cell, <td>

Note that in order for table/row options to work they need to be attached after the first set of |'s (and table options on the first line of the table).

Example of advanced table

The following code gives the table below code excerpt:

||{Tb,w=4,c} Rowspan 4 lines ||{c,B} Cell One ||{r,I} Cell Two ||
|||| Big ol' line ||
||{w,b} Simple rowspan || Cell three ||
||{s=background-color: #550055; color: #cdcd00} A very wide colored cell ||
Rowspan 4 lines Cell One Cell Two
Big ol' line
Simple rowspan Cell three
A very wide colored cell