Difference between revisions for Playground / Table Markup Reference





Next edit →

Version1 Version2 Differences
2 2
3 3 The generic markup for table elements follows this scheme:
4 4
5     ##**!!*|!!!!(blue)(attribute parameters)!!!!(green){style parameters}!!content!!||!!**##
  5   ##**!!*|!!!!(blue)(attribute parameters)!!!!(green){style parameters}!! content !!||!!**##
6 6
7 7 ====Example:====
8 8
9     ##""*|(i:main_heading){text-size: 120%}This is the main heading|*""##
  9   ##""*|(i=main_heading){text-size: 120%} This is the main heading |*""##
10 10
11 11 ====Understanding the Table Markup Scheme====
12 12   1. **Opening delimiter** --- **##!!^|!!##** is any of the delimiters described in the //elements table// below.
13     1. **Attributes** --- **##!!(blue)(attribute parameters)!!##** is an optional series of ##parameter:value## declarations enclosed in brackets. Valid parameters are described in the //attribute table// below. Multiple parameter declarations can be separated with a semicolon (**##;##**).
  13   1. **Attributes** --- **##!!(blue)(attribute parameters)!!##** is an optional series of ##parameter=value## declarations enclosed in brackets. Valid parameters are described in the //attribute table// below. Multiple parameter declarations can be separated with a space (**## ##**).
14 14   1. **Style** --- **##!!(green){style parameters}!!##** is an optional series of CSS style declarations enclosed in braces. Multiple style declarations can be separated with a semicolon (**##;##**).
15 15   1. **Content** --- **##content##** can be any valid content for that element (including [[Docs:TextFormatting|formatted text]]).
16 16   1. **Closing delimiter** --- **##!!||!!##** is the standard delimiter.
22 22
23 23 #|
24 24 !|{width: 80%}|!
25   ?|Table Elements|?
26   *| XHTML Elements | Delimiter | Notes |*
  25 ?| Table Elements |?
  26 *| HTML Elements | Delimiter | Notes |*
27 27 || ##<table>## | ##""!|""## | Optional, only useful for adding attributes. **Must** be first in table markup if used. Should be on a line by itself. ||
28 28 || ##<caption>## | ##""?|""## | ||
29 29 || ##<colgroup>## | ##""_|""## | ||
31 31 || ##<thead>## | ##""[|""## | ||
32 32 || ##<tfoot>## | ##""]|""## | ||
33 33 || ##<tbody>## | ##""|#|""## | ||
34   || ##<tr>## | none | Will be opened for each row of table cells. ||
  34 || ##<tr>## | ##""||""## | Must be set for each row of table cells. ||
35 35 || ##<th>## | ##""^|""## | ||
36 36 || ##<td>## | ##""|""## | ||
37 37 |#
39 39 ===3. Attributes===
40 40
41 41 #|
42   ?|Table Attributes|?
  42 ?| Table Attributes |?
43 43 *| Attribute | Markup key |*
44   *|(x=2) Core |*
  44 *|(colspan=2) Core |*
45 45 || ##id## | ##i## ||
46   || ##title## | ##t## ||  
47 46 || ##class## | ##c## ||
48 47 || ##style## | ##s## ||
49   *|(x=2) i18n |*
50   || ##xml:lang## | ##l## ||
  48 *|(colspan=2) i18n |*
  49 || ##lang## | ##l## ||
51 50 || ##dir## | ##d## ||
52   *|(x=2) Table cells |*
  51 *|(colspan=2) Table cells |*
53 52 || ##colspan## | ##x## ||
54 53 || ##rowspan## | ##y## ||
55 54 || ##scope## | ##o## ||
56   || ##headers## | ##h## ||
57   || ##abbr## | ##a## ||
58   || ##axis## | ##z## ||
59   *|(x=2) Other Table elements |*
60   || ##span## | ##p## ||
61   || ##summary## | ##u## ||
  55 ||(colspan=2 a=center) style ||
  56 || ##width## | ##w## ||
  57 ||(colspan=2 a=center) class ||
  58 || ##align## | ##a## ||
  59 || ##bgcolor## | ##c## ||
  60 || ##vertical## | ##v## ||
62 61 |#