Wiki Model: Tables

WikiModel

Documents and sections

Default block formatting

Default inline formatting

Each cell of the table can contain any number of lines.

Simple table

Syntax Result
| one | two
| three | four
one two
three four

Table header

Table header starts from “||” symbols.

Syntax Result
|| header one || header two
| cell one | cell two
header one header two
cell one cell two

Parameters

Each table cell or table header can have a list of parameters. Parameters are inserted between “((” and “))” delimiters just after the cell or header delimiter (“|” or “||”). For more information about parameters – see “parameters” section.

  Syntax Result
Cell parameters
(Parameters are just after “|” symbol)
|Cell 1.1 | Cell 1.2 | Cell 1.3
|Cell 2.1 |((style=“background-color:yellow”)) Cell 2.2 | Cell 2.3
|Cell 3.1 | Cell 3.2 | Cell 3.3
Cell 1.1 Cell 1.2 Cell 1.3
Cell 2.1 Cell 2.2 Cell 2.3
Cell 3.1 Cell 3.2 Cell 3.3
Row parameters
(Parameters are at the begining of the line just before the first “|” symbol)
|Cell 1.1 | Cell 1.2 | Cell 1.3
((style=“background-color:yellow”))|Cell 2.1 | Cell 2.2 | Cell 2.3
|Cell 3.1 | Cell 3.2 | Cell 3.3
Cell 1.1 Cell 1.2 Cell 1.3
Cell 2.1 Cell 2.2 Cell 2.3
Cell 3.1 Cell 3.2 Cell 3.3
Table parameters
(Table parameters are at the previous line, just before the first table row)
((style=“background-color:yellow”))
|Cell 1.1 | Cell 1.2 | Cell 1.3
|Cell 2.1 | Cell 2.2 | Cell 2.3
|Cell 3.1 | Cell 3.2 | Cell 3.3
Cell 1.1 Cell 1.2 Cell 1.3
Cell 2.1 Cell 2.2 Cell 2.3
Cell 3.1 Cell 3.2 Cell 3.3

Example

Code Result

 

||((colspan=“2”)) Header
|| Subheader one || Subheader two
|((width=“80%”)) cell one 
  (Width of this cell is 80%)
  |((rowspan=“2”)) this cell is in two lines
| cell two 

 

Header
Subheader one Subheader two
cell one (Width of this cell is 80%) this cell is in two lines
cell two
Page content

Cognium Systems SA © 2005
Eclipse Public License (EPL)
Powered by WikiModel :-)