Difference between revisions for Playground / Table Syntax




← Previous edit
Next edit →

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