X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8f5d3267619da5325eb2d46ce7d9744964e6b9a2..c5c1519d97d18a6e630ee7afb647632109a4853b:/doc/plugins/contrib/table.mdwn?ds=inline diff --git a/doc/plugins/contrib/table.mdwn b/doc/plugins/contrib/table.mdwn index 649755719..46f7b09a7 100644 --- a/doc/plugins/contrib/table.mdwn +++ b/doc/plugins/contrib/table.mdwn @@ -1,14 +1,15 @@ -[[meta title="table (third-party plugin)"]] +[[template id=plugin name=table author="[[VictorMoral]]"]] +[[tag type/format]] -This plugin allows build html tables from data in csv (comma-separated values) or dsv (delimiter-separated values) formats. +This plugin supplies a `table` [[PreprocessorDirective]] to build html tables from data in CSV (comma-separated values) or DSV (delimiter-separated values) format. -It need the perl module [[cpan Text::CSV]] for the csv data. +It needs the perl module [[cpan Text::CSV]] for the CSV data. -## usage +## Usage In any source page include the following: - The next table show the results: + The next table shows the results: \[[table class="myclass" format=dsv data=""" Custom|Amount| @@ -28,25 +29,25 @@ In any source page include the following: The parameters are: -- _data_: Contains the values for the table -- _file_: Wiki page whom contains the data. +- _data_: Values for the table +- _file_: Wiki page containing the data. - _format_ (optional): format name of the data. By default is `auto` and the options are `csv` or `dsv`. -- _delimiter_ (optional): Define the character used for separated the fields. By default is the vertical barr "|" in DSV format and the comma "," for the CSV format. -- _class_ (optional): CSS class for the table html element -- _caption_ (optional): Text string with the table caption. -- _no\_header_: This switch disable the generation of table header elements. By default this switch is enabled, and the header cells come from the firts data line. +- _delimiter_ (optional): The character used to separate fields. By default, DSV format uses a pipe (`|`), and CSV uses a comma (`,`). +- _class_ (optional): CSS class for the table html element +- _caption_ (optional): Text string for the table caption. +- _no\_header_: This switch disables the generation of table header (`