Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| doc:tables [2026/03/31 12:52] – Simon Grant | doc:tables [2026/04/04 19:10] (current) – [Other syntax] Simon Grant | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== Using the toolbar ==== | ==== Using the toolbar ==== | ||
| - | In the editing toolbar, there is an icon for a few things: {{misc-icon.png}}. Clicking on that brings up a menu: {{misc-menu.png}}. It's the second of these, {{table-icon.png|Add table with caption}} that helps here. Clicking there gives you this … | + | In the editing toolbar, there is an icon for a few miscellaneous |
| ``` | ``` | ||
| - | < | + | < |
| < | < | ||
| ^ Header1 ^ Header2 ^ | ^ Header1 ^ Header2 ^ | ||
| Line 19: | Line 19: | ||
| ==== DokuWiki syntax ==== | ==== DokuWiki syntax ==== | ||
| - | The key to the alignment of table cells are the spaces. In short, put two or more spaces where you don't want the contents to be. Zero or one space either side of cell contents will result in default left-alignment. | + | The key to the alignment of table cells are the spaces. In short, put two or more spaces |
| ``` | ``` | ||
| <table tab_label> | <table tab_label> | ||
| < | < | ||
| - | ^ Col 1 ^ Col 2 ^ Col 3 ^ Col 4 ^ Col 5 ^ Col 6 ^ padding | + | ^ Col 1 ^ Col 2 ^ Col 3 ^ Col 4 ^ Col 5 ^ Col 6 ^ |
| - | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxx |
| - | |left | + | |left |
| - | | centred | + | | centred |
| - | | right | left | centred | + | | right | left | centred |
| - | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxx |
| </ | </ | ||
| ``` | ``` | ||
| <table tab_label> | <table tab_label> | ||
| < | < | ||
| - | ^ Col 1 ^ Col 2 ^ Col 3 ^ Col 4 ^ Col 5 ^ Col 6 ^ padding | + | ^ Col 1 ^ Col 2 ^ Col 3 ^ Col 4 ^ Col 5 ^ Col 6 ^ |
| - | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxx |
| - | |left | + | |left |
| - | | centred | + | | centred |
| - | | right | left | centred | + | | right | left | centred |
| - | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxx |
| </ | </ | ||
| + | ===== Other syntax ===== | ||
| + | |||
| + | Markdown does not work for tables here. Perhaps there is too much overlap in syntax. | ||
| + | |||
| + | MediaWiki tables are quite difficult and don't work here. | ||
| + | |||
| + | This is one of the places that DokuWiki seems to have hit a sweet spot in terms of intuitive syntax. | ||
| + | |||
| + | ===== See also ===== | ||
| More detail on DokuWiki: [[doku> | More detail on DokuWiki: [[doku> | ||