This page (revision-7) was last changed on 03-Feb-2017 10:35 by JianSun

This page was created on 23-Apr-2007 15:02 by JianSun

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
7 03-Feb-2017 10:35 2 KB JianSun to previous
6 23-Apr-2007 15:13 2 KB JianSun to previous | to last
5 23-Apr-2007 15:12 2 KB JianSun to previous | to last
4 23-Apr-2007 15:10 2 KB JianSun to previous | to last
3 23-Apr-2007 15:08 2 KB JianSun to previous | to last
2 23-Apr-2007 15:05 4 KB JianSun to previous | to last
1 23-Apr-2007 15:02 1 KB JianSun to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 47 lines
[{ALLOW edit EISMainUsers}]
[{ALLOW view Anonymous}]
[{TableOfContents}]
!! 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
* Example 1 : table with row and column spans
{{{
At line 49 added 7 lines
|Nr |A |< |C |<
|# |a |b |c |(background:yellow;)d
|# |^ |b |^ |(background:yellow;)d
}]
}}}
gives you:
[{Table
At line 8 removed one line
[{Table oddRowStyle='background:#f0f0f0;' rowNumber='-1'
At line 10 changed 3 lines
|| [THE 15 MOST POPULAR ICE CREAM FLAVORS|http://www.sendicecream.com/15mospopicec.html]
||<
||<
* Example 2: table with multi-line editing
At line 14 changed 17 lines
|| ||Flavor|| percent preferring
|#. |Vanilla| 29%
|#. |Chocolate| 8.9%
|#. |Butter pecan| 5.3%
|#. |Strawberry| 5.3%
|#. |Neapolitan| 4.2%
|#. |Chocolate chip| 3.9%
|#. |French vanilla| 3.8%
|#. |Cookies and cream| 3.6%
|#. |Vanilla fudge ripple| 2.6%
|#. |Praline pecan| 1.7%
|#. |Cherry| 1.6%
|#. |Chocolate almond| 1.6%
|#. |Coffee| 1.6%
|#. |Rocky road| 1.5%
|#. |Chocolate marshmallow| 1.3%
|All others|< | 23.7%
{{{[{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
At line 32 changed one line
Source: International Ice Cream Association, 888 16th St. Washington, D.C., 20006
|<
|<
At line 83 added 3 lines
}]}}}
gives you: