1 [[!template id=plugin name=table author="[[VictorMoral]]"]]
4 This plugin can build HTML tables from data in CSV (comma-separated values)
5 or DSV (delimiter-separated values) format.
7 It needs the perl module [[!cpan Text::CSV]] for the CSV data.
18 \[[!table class="book_record" format=csv file="data/books/record1"]]
20 In this second example the `record1` page should be similar to:
22 "Title","Perl Best Practices"
23 "Author","Damian Conway"
24 "Publisher","O’Reilly"
26 To make a cell span multiple columns, follow it with one or more empty
32 this cell spans 4 columns|||
37 * `data` - Values for the table.
38 * `file` - A file in the wiki containing the data.
39 * `format` - The format of the data, either "csv", "dsv", or "auto"
41 * `delimiter` - The character used to separate fields. By default,
42 DSV format uses a pipe (`|`), and CSV uses a comma (`,`).
43 * `class` - A CSS class for the table html element.
44 * `header` - By default, or if set to "row", the first data line is used
45 as the table header. Set it to "no" to make a table without a header, or
46 "column" to make the first column be the header.