]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/table/discussion.mdwn
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[git.ikiwiki.info.git] / doc / plugins / table / discussion.mdwn
1 Well, that's an one workaround for (some versions of) markdown's
2 lack of tables..
4 Interesting that you chose to use CSV format. Seems there are advantages
5 (standardisation) and disadvantages (limited to simple tables).
7 --[[Joey]]
9 # Patch for new header options
11 I have written a small patch for this plugin to enable the first column as a header instead of just the first row or no header.
13 In my version, there is three options for the header field :
15 + **no**: no header;
16 + **col**: the first column as header;
17 + **row**: the first row as header (for compatibility reason, **yes** is an alternate value for this option). 
19 Here is the links to the patch and to a patched version of the plugin :
21 + [table.pm.patch](http://alexandre.dupas.free.fr/code/ikiwiki/table.pm.patch)
22 + [table.pm](http://alexandre.dupas.free.fr/code/ikiwiki/table.pm)
24 I hope this might be intresting for some ikiwiki user's.
26 --[[AlexandreDupas]]
28 > Thanks for the patch, I've merged it in.
29 > (Just FYI, in future, I recommend using a unified diff. Also, not
30 > renaming variables that don't really need to be renamed makes your patch
31 > easier to apply.) --[[Joey]]
33 ---
35 # Horizontal cell alignment
37 Do you know any easy method of horizontal cell alignment? I know I can set `class`
38 attribute for the table, but how to set different `class` for different cells?
40 [DokuWiki](http://www.dokuwiki.org/) has a nice horizontal alignment solution.
41 Suppose that we have `|foo|` cell. If I want to align the cell to left,
42 then I should type `|foo |`. If I want to do right alignment, then I type `| foo|`.
43 For centering cell content I need to type `| foo |`. Please note that I used
44 only one space for all examples, but in DokuWiki I can use many spaces.
46 Do you like it? Can you implement the same in Ikiwiki? :) --[[PaweÅ‚|ptecza]]