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.
11 "bar",[[joeyno]], foo"
28 \[[table class="book_record" format=csv file="data/books/record1"]]
30 In this second example the `record1` page should be similar to:
32 "Title","Perl Best Practices"
33 "Author","Damian Conway"
34 "Publisher","O’Reilly"
36 To make a cell span multiple columns, follow it with one or more empty
42 this cell spans 4 columns|||
47 * `data` - Values for the table.
48 * `file` - A file in the wiki containing the data.
49 * `format` - The format of the data, either "csv", "dsv", or "auto"
51 * `delimiter` - The character used to separate fields. By default,
52 DSV format uses a pipe (`|`), and CSV uses a comma (`,`).
53 * `class` - A CSS class for the table html element.
54 * `header` - Set to "no" to make a table without a header. By default,
55 the first data line is used as the table header.