| Table Plugin
|
|
< < | |
> > |
|
| |
|
< < | |
> > |
|
| Control attributes of tables and sorting of table columns
Introduction |
|
< < | The TablePlugin gives extra control of table display: |
> > | The TablePlugin gives extra control of TWiki table rendering using | cell 1 | cell 2 | syntax: |
| |
|
< < |
- Allows sorting
- Changing table properties like border width, cell spacing and cell padding
- Changing background color and text color for header cells
- Changing background color and text color for data cells - colors can alternate
- Table attributes can be set and overridden in this order:
- Default
TABLEATTRIBUTES Plugin setting in this topic.
- A
TABLEATTRIBUTES preferences setting on site-level (TWikiPreferences) or web-level (any WebPreferences), e.g.
|
> > |
- Sort table by columns
- Use TML (TWiki Markup Language) in table cells using
|>> TML <<| syntax.
- Support row spans using
|^| syntax.
- Change table properties, such as border width, cell spacing and cell padding.
- Change background color and text color for header cells.
- Change background color and text color for data cells - colors can alternate.
- Set and override table attributes in this order:
- Default
TABLEATTRIBUTES Plugin setting in current topic.
- A
TABLEATTRIBUTES preferences setting on site-level (TWikiPreferences) or web-level (any WebPreferences), such as:
|
|
-
-
-
Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" ...
|
|
< < |
-
- Before a table using
%TABLE{...}%
- Row spans
|
> > |
-
- Before a table using
%TABLE{...}% .
|
|
Sorting |
|
- number is digits, with optional decimal point
- otherwise treated as text
|
|
> > | Using TML in table cells
A TWiki table has a line-oriented markup, e.g. normally it is not possible to use other line-oriented TML, such as bullets or nested tables.
It is possible to introduce newlines in a table cell if the cell is enclosed in double-angle brackets, such as |>> TML <<| . Example:
You write:
| *A1* | *B1* | *C1* | *D1* |
| A2 |>> B2
* Bullet
* list
* is
* possible
<<|>> C2
| *C2.1* | *C2.2* |
| Embedded | table |
| possible | too |
end C2
<<| D2 |
| A3 | B3 | C3 | D3 |
| |
You get:
A1 |
B1 |
C1 |
D1 |
A2 |
B2
|
C2
end C2
|
D2 |
A3 |
B3 |
C3 |
D3 |
|
|
| Row spans |
|
< < | Table cells with a single caret indicate follow-up rows of multi-row spans. For example,
|
> > | Table cells with a single caret indicate follow-up rows of multi-row spans. Example:
|
|
| One One | One Two | One Three |
| ^ | Two Two | Two Three |
| Three One | ^ | Three Three |
|
|
< < | |
> > | |
|
One One |
One Two |
One Three |
Two Two |
Two Three |
Three One |
Three Three |
|
|
Plugin Author: |
TWiki:Main.JohnTalintyre, TWiki:Main.PeterThoeny |
|
|
< < |
Copyright: |
© 2001-2003 TWiki:Main.JohnTalintyre, © 2001-2013 Peter[at]Thoeny.org, TWiki.org , © 2005-2013 TWiki:TWiki.TWikiContributor |
|
> > |
Copyright: |
© 2001-2003 TWiki:Main.JohnTalintyre, © 2001-2015 Peter[at]Thoeny.org, TWiki.org , © 2005-2015 TWiki:TWiki.TWikiContributor |
|
|
|
|
< < |
Plugin Version: |
2014-01-21 |
|
> > |
Plugin Version: |
2015-07-28 |
|
| <--/twistyPlugin twikiMakeVisibleInline--> |
|
> > |
2015-07-28: |
TWikibug:Item7679: TablePlugin may not put the default style on Fast CGI or mod_perl |
2015-02-16: |
TWikibug:Item7604: Switch from GPL v2 to v3 |
2014-12-08: |
TWikibug:Item7594: Fix issue where bullet list was not closed properly at end of table cell (introduced 2014-12-08) |
2014-12-08: |
TWikibug:Item7594: Support table cells with TML |
|
|
2014-01-21: |
TWikibug:Item7416: TablePlugin causes an error with an illegal date such as 2013-00-00 |
2013-09-25: |
TWikibug:Item7151: Fix documentation to use Webster spelling |
2013-06-21: |
TWikibug:Item7283: Auto-detect number of header rows when sorting; fix headerrows parameter issue |
|