X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9921a4a8a1a696ce69acce5e14943f0149d926ff..dfadaa0bf91666859ef3760520b108aac730cee2:/doc/ikiwiki/directive/table.mdwn?ds=inline diff --git a/doc/ikiwiki/directive/table.mdwn b/doc/ikiwiki/directive/table.mdwn index 0d1af1249..3e7917789 100644 --- a/doc/ikiwiki/directive/table.mdwn +++ b/doc/ikiwiki/directive/table.mdwn @@ -1,4 +1,4 @@ -The `table` directive is supplied by the [[!iki plugins/table]] plugin. +The `table` directive is supplied by the [[!iki plugins/table desc=table]] plugin. This directive can build HTML tables from data in CSV (comma-separated values) or DSV (delimiter-separated values) format. @@ -6,8 +6,8 @@ or DSV (delimiter-separated values) format. ## examples \[[!table data=""" - Customer|Amount - Fulanito|134,34 + Customer |Amount + Fulanito |134,34 Menganito|234,56 Menganito|234,56 """]] @@ -26,7 +26,7 @@ cells. For example: \[[!table data=""" left||right| a|b|c|d - this cell spans 4 columns||| + this cell spans **4** columns||| """]] ## usage @@ -42,4 +42,12 @@ cells. For example: as the table header. Set it to "no" to make a table without a header, or "column" to make the first column be the header. +For tab-delimited tables (often obtained by copying and pasting from HTML +or a spreadsheet), `delimiter` must be set to a literal tab character. These +are difficult to type in most web browsers - copying and pasting one from +the table data is likely to be the easiest way. + +Note that the contents of table cells can contain arbitrary ikiwiki and +markdown markup. + [[!meta robots="noindex, follow"]]