Tables Help
This revision is from 2026/10/29 03:28. You can Restore it.
Tables Help
Tables are written with one line per row. A row starts with a pipe and ends with a pipe, and the cells are separated by pipes. A blank line ends the table, so you can write several tables on one page.
Basic table
|h Name|h Value|
| Alpha | one |
| Beta | two |
Result:
| Name | Value |
| Alpha | one |
| Beta | two |
Cell options
Options go directly after the opening pipe of a cell, in this order: style letters, then a space, then the column span, optionally a comma and the row span, then the cell text.
- h header cell
- l or r align the text left or right
- t or b align the text to the top or bottom of the cell
- a number is the number of columns the cell spans, for example |2 text|
- a comma and a number is the number of rows the cell spans, for example |,2 text|
- both together, for example |3,2 text|
The letters can be combined, for example hr is a right-aligned header cell.
|h 3 Fruit list (spans three columns)|
|h Fruit|hr Colour|hr Taste|
| Apple |r red|r sweet|
| Lemon |r yellow|r sour|
|,2 Berries|r various|r mixed|
|r blue|r tart|
Result:
| Fruit list (spans three columns) | ||
| Fruit | Colour | Taste |
| Apple | red | sweet |
| Lemon | yellow | sour |
| Berries | various | mixed |
| blue | tart | |
Numbers in cells
Digits at the start of a cell (after the optional style letters) are read as a column span. A cell written as | 100 USD | or |r 4.50| therefore does not show what you typed. Put a non-breaking space in front of the number:
|h Item|hr Price|
| Tea |r 4.50|
| Coffee |r 5.00|
Result:
| Item | Price |
| Tea | 4.50 |
| Coffee | 5.00 |
Writing some text before the number also works, for example USD 4.50.
Links in cells
Links are written the usual way, even though they contain a pipe themselves.
| [Home page|./kb.php?page=kb] | [Example|https://imtcoin.com] |
Result:
| Home page | Example |
Other things to watch out for
- Options must touch the pipe. Write |r red and not | r red. With a space in front, the r is shown as text.
- A first word made only of the small letters h, l, r, t and b is read as style letters. Start the cell with another character if you need such a word.
- Showing table syntax on a page. Anything that looks like a table row is turned into a table, even inside a pre block. To show the raw text, write the first pipe of each line as ^| as it is done in the examples above.
- A table inside an html block is left alone.
IMMORTALITY