HowToCreateATableAdvanced
Back to current versionRestore this version

Basic markup#

The table plugin is compatible with the standard JSPWiki table syntax :

Multi-line table editing#

The standard table markup of JSPWiki requires you to put every row on a single line without carriage returns.

With the Table plugin, a single table row and even a single table cell can be entered on multiple lines.

A multi-line table row is similar to a bulleted list, where you replace the bullets ('*') with pipes ('|' or '||'). A blank line indicates the end of a table row.

| These cells
| will all appear
| as a single table row

It is also possible to put the contents of a single table cell across multiple lines. So it is easy to put lots of text and markup inside a single table cell and still keep your markup readable.
| This cell
  is put over 2 lines
| The 2nd cell comes here

You can combine muti-line rows with standard wiki table syntax too. As long as a single line contains only one table cell, it is assumed to continue on the next line. Multi-line rows always need to be terminated with blank lines; for standard wiki table rows you may omit the blank lines.
| This row has 
| Two cells

| You can also    | use standard wiki markup.
| Here is another | table row

Of course, you can combine this multi line syntax with the '|<', '|^' and '#' stuff as well.

Table Examples:#

[{Table
|Nr |A |< |C |<
|#  |a |b |c |(background:yellow;)d
|#  |^ |b |^ |(background:yellow;)d
}]
gives you: JSPWiki : HowToCreateATableAdvanced - Plugin insertion failed: Could not find plugin TableJSPWiki : HowToCreateATableAdvanced - Plugin insertion failed: Could not find plugin Table

[{Table style='border:3px solid #cccccc;'

|(text-align:center;font-weight:bold; background:#cccccc;) Hi dear Wiki. 
|<
|<

| Date: [{CurrentTimePlugin format='dd:MMM:yyyy'}] 
| Time: [{CurrentTimePlugin format='hh:mm:ss'}]
| This page: [{$pagename}] 

| [{Table 

| Nested table | Nested table
| Nested table | Nested table
}]
|<
|<

}]

gives you: JSPWiki : HowToCreateATableAdvanced - Plugin insertion failed: Could not find plugin TableJSPWiki : HowToCreateATableAdvanced - Plugin insertion failed: Could not find plugin Table