Easy Tables and Easy Grids


Using a certain combination of vertical pipes and minus symbols will trigger an "easy grid" or "easy table".

The bare minimum for a table is:

| Cell | Cell  | Cell  |
|
(the second line starting with a pipe is just enough to trigger the table conversion)


Or ...

| Header | Header | Header |
|- 
(the additional minus symbol is enough to denote that the first row is a header row)

Trailing (end-of-line) pipe symbols are optional.

For a grid it is:
+--+
|A |
+--+
(two minus signs in a row on at least two rows, enclosed in the plus signs)


More advanced tables:

| Header | Header | Header |
|--------|--------|--------|
| Cell  | Cell  | Cell  |


Or ...
| Header | Header | Header |
|--------------------------|
| Cell  | Cell  | Cell  |


Or ...
|! Header  | Cell  | Cell  |
|! Header  | Cell  | Cell  |
|! Header  | Cell  | Cell  |

Characters immediately after each pipe affect the display of the cell.
  1. "!" denotes a header cell (TH).
  2. "!!" denotes the (rest of the) row are all header cells (TH).
  3. "=" denotes a shaded cell (same background as TH).
  4. "^" means centre aligned.
  5. ">" means right aligned.
  6. "<" means left aligned.
  7. A number means a columns span of that many columns.
  8. An additional full stop plus a number after the above means row span.
  9. A percentage (1 to 99) denotes the cell (and thus column) width.


The divider row, optional, denotes if the first row is a header row (i.e. all THs).  The first row can have a percentage on the end to denote how wide it is.  e.g.

| Header |50%
|-


Or ...
| Cell |50%
|


Advanced Tables:

| Header 1.1  | Header 1.2 | Header 1.3  |  1.4 |90%
|------------------------------------------------|
|>Header 2.1  | Cell 2.2  | Lazy...
|>2.3 Cell 3.1              | Cell 3.3    |> 3.4 |
                            |1.3 Cell 4.3 |^ 4.4 |
                                          |  5.4 |
| 6.1          | 6.2                      |  6.4 |

Will display something like:

Header 1.1Header 1.2Header 1.31.4
Header 2.1Cell 2.2Lazy... 
Cell 3.1Cell 3.33.4
Cell 4.34.4
5.4
6.16.26.4


Advanced grids:

Small (size 1) grid:
+-1-+
|A| |
| |B|
+---+



Default (size 2) grid:
+---+---+---+
|=  |=1 |=2 |
+---+---+---+
|=A | x |  |
+---+-------+
|=B |  | x |
+---+---+---+



Largest (size 5) grid:
+-5-+---+
| A |  |
+---+---+
|  | B |
+---+---+

Last updated: 23:19, Fri 10 Nov 2023.
Direct link: http://new.rpol.net/help/?t=help&page=easytable