Difference between revisions for Playground / Table Syntax





Next edit →

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