subversion Wiki: HelpOnTables

Table Markup

To create a table, you start and end a line using the table marker "||". Between those start and end markers, you can create any number of cells by separating them with "||". To get a centered cell that spans several columns, you start that cell with more than one cell marker. Adjacent lines of the same indent level containing table markup are combined into one table.

Table Attributes

Apart from the option to repeat cell markers to get columns spanning several other columns, you can directly set many HTML table attributes. Any attributes have to be placed between angle brackets <...> directly after the cell marker.

The wiki-like markup has the following options:

<-2>: colspan

<|2>: rowspan

<style="..."> will put that style info into cell (td) html

<rowstyle="..."> will put that style info into row (tr) html

<tablestyle="..."> will put that style info into table (table) html

<class="..."> will put that CSS class into cell (td) html

<rowclass="..."> will put that CSS class into row (tr) html

<tableclass="..."> will put that class into table (table) html

<id="..."> will put that CSS id into cell (td) html

The style stuff is all you need for styling your tables. Just use CSS formatted style there and it will be inlined in the generated HTML tag. You can use several options at the same time by writing them one after the other within the same angle brackets (e.g. <tablestyle="..." rowstyle="..."> on the first cell, to set both the table-wide style and the first-row style).

We still support the old table markup, but generate the effect by appending additional values to the style parameter:

<50%>: cell width (will append width: 50%; to style)

<width="50%">: does the same

<tablewidth="100%">: set table width to 100% (only valid in first table row)