Difference between revisions for Playground / Table Syntax
| Version1 | Version2 | ||
|---|---|---|---|
| 2 | 2 | ||
| 3 | * caption | 3 | * caption |
| 4 | * th | 4 | * th |
| 5 | * colspan | 5 | * colspan / rowspan |
| 6 | * rowspan | ||
| 7 | * text alignment | 6 | * text alignment |
| 8 | * indent | 7 | * indent |
| 9 | * left (default) | 8 | * left (default) |
| … | … | … | … |
| 20 | 19 | ||
| 21 | ===Syntax=== | 20 | ===Syntax=== |
| 22 | #| | 21 | #| |
| 23 |
|
22 | || ^ Syntax ^ Notes || |
| 24 |
|
23 | ^| Caption | ##""?| Caption |?""## | title of the table || |
| 25 |
|
24 | ^| Thead | ##""*| Header | Header |*""## | head columns, entire row || |
| 26 |
|
25 | ^| Th | ##""^| Header | Col ||""## |
| 27 | ##""|| Col ^ Header ||""## | head row || | 26 | ##""|| Col ^ Header ||""## | head row || |
| 28 |
|
27 | ^| Cellspan | ##""||(colspan=2;rowspan=2) 2x2 | 1x1 ||""## | cell spanning, ##x## colspan, ##y## rowspan || |
| 29 |
|
28 | ^| Tfoot | ##""=| Footer | Footer |=""## | not sure if this should be implemented at all || |
| 30 | |# | 29 | |# |
| 31 | 30 | ||
| 32 | ===One=== | 31 | ===One=== |
| … | … | … | … |
| 44 | |# | 43 | |# |
| 45 | 44 | ||
| 46 | #| | 45 | #| |
| 47 |
||( |
46 | ||(colspan=2)Cell spanning 2 columns|Cell 3|| |
| 48 | ||Cell 4|Cell 5|Cell 6|| | 47 | ||Cell 4|Cell 5|Cell 6|| |
| 49 | ||Cell 7|Cell 8|Cell 9|| | 48 | ||Cell 7|Cell 8|Cell 9|| |
| 50 | |# | 49 | |# |
| 51 | 50 | ||
| 52 | #| | 51 | #| |
| 53 |
||( |
52 | ||(rowspan=2)Cell spanning 2 rows|Cell 2|Cell 3|| |
| 54 | ||Cell 5|Cell 6|| | 53 | ||Cell 5|Cell 6|| |
| 55 | ||Cell 7|Cell 8|Cell 9|| | 54 | ||Cell 7|Cell 8|Cell 9|| |
| 56 | |# | 55 | |# |
| 57 | 56 | ||
| 58 | #| | 57 | #| |
| 59 | ?|Fruit production in the last two years|? | 58 | ?|Fruit production in the last two years|? |
| 60 |
|| ^( |
59 | || ^(colspan=2)Apples^(colspan=2)Pears|| |
| 61 | || ^2005^2006^2005^2006|| | 60 | || ^2005^2006^2005^2006|| |
| 62 | ^|Mary|300Kg|320Kg|400kg|280Kg|| | 61 | ^|Mary|300Kg|320Kg|400kg|280Kg|| |
| 63 | ^|John|400Kg|630Kg|210Kg|300Kg|| | 62 | ^|John|400Kg|630Kg|210Kg|300Kg|| |
| 64 | |# | 63 | |# |
| 65 | 64 | ||
| 66 | #| | 65 | #| |
| 67 |
^|( |
66 | ^|(colspan=2;rowspan=2)2x2|(colspan=2)2x1|(rowspan=2)1x2|| |
| 68 |
||( |
67 | ||(rowspan=2)1x2|1x1|| |
| 69 |
||1x1|1x1|( |
68 | ||1x1|1x1|(colspan=2)2x1|| |
| 70 | |# | 69 | |# |
| 71 | 70 | ||
| 72 | 71 | ||
| … | … | … | … |
| 116 | ===Seven=== | 115 | ===Seven=== |
| 117 | #| | 116 | #| |
| 118 | ?| Table Caption |? | 117 | ?| Table Caption |? |
| 119 |
*| |
118 | *|(width=200px) | Heading 1 | Heading 2 | Heading 3 |* |
| 120 |
^| Row 1 Col 1 | |
119 | ^| Row 1 Col 1 |(colspan=2 align=center) Row 1 Col 2 | Row 1 Col 3 || |
| 121 |
|| Row 2 Col 1 ^ |
120 | || Row 2 Col 1 ^(colspan=3) some colspan || |
| 122 |
|| Row 3 Col 1 | |
121 | || Row 3 Col 1 |(colspan=2 bgcolor=green) Row 3 Col 2 ^ Row 3 Col 3 || |
| 123 | |# | 122 | |# |