Contents
ImprovedTableParser
Description
The ImprovedTableParser extension for MoinMoin provides an alternative way of describing tables in Wiki pages together with additional features for the presentation of tabular data, such as the sorting of data by a combination of user-selectable columns.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
0.2.3 |
1.8, 1.9 |
||
0.2.1 |
1.8, 1.9 |
||
0.2 |
1.8, 1.9 |
||
0.1 |
1.8, 1.9 |
Installation
See the bundled documentation for installation instructions. ImprovedTableParser is most conveniently installed using moinsetup. It also depends on MoinSupport.
Usage
To create a table using the alternative syntax supported by this extension, create a section in a Wiki page using a special declaration indicating that the section describes a table:
{{{#!table '''Heading #1''' || '''Heading #2''' == Cell #1 || Cell #2 }}}
See pages/HelpOnImprovedTableParser for more detailed information.
Example
The above usage example produces output equivalent to the following:
Heading #1 |
Heading #2 |
Cell #1 |
Cell #2 |
However, taking advantage of the improved syntax, we could write the table as follows:
{{{#!table '''Heading #1''' || '''Heading #2''' == Cell #1 || Cell #2 }}}
Table sorting is done by declaring column types:
{{{#!table columntypes='1n' name=figures headers=1 '''Country''' || '''Population''' == United Kingdom || 62000000 == France || 65000000 == Germany || 81000000 }}}
This table should be sortable and when sorting by the second column (1), the contents of the data cells should be treated as numbers.
Copyright
Copyright (C) 2012, 2013, 2015 Paul Boddie <paul AT boddie DOT org DOT uk>
License
GNU General Public License version 2 or later