aboutsummaryrefslogtreecommitdiff
path: root/tests/tables.mediawiki
blob: abe1cf530d01f81dfca28752fea5eb3e6e398cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Simple table with caption:

<table>
<caption>Demonstration of simple table syntax.</caption><tr>
<th align="right" style="width: 15%;">Right<th>
<th align="left" style="width: 8%;">Left<th>
<th align="center" style="width: 16%;">Center<th>
<th align="left" style="width: 12%;">Default<th>
</tr><tr>
<td align="right">12<td>
<td align="left">12<td>
<td align="center">12<td>
<td align="left">12<td>
</tr>
<tr>
<td align="right">123<td>
<td align="left">123<td>
<td align="center">123<td>
<td align="left">123<td>
</tr>
<tr>
<td align="right">1<td>
<td align="left">1<td>
<td align="center">1<td>
<td align="left">1<td>
</tr>
</table>
Simple table without caption:

<table>
<tr>
<th align="right" style="width: 15%;">Right<th>
<th align="left" style="width: 8%;">Left<th>
<th align="center" style="width: 16%;">Center<th>
<th align="left" style="width: 12%;">Default<th>
</tr><tr>
<td align="right">12<td>
<td align="left">12<td>
<td align="center">12<td>
<td align="left">12<td>
</tr>
<tr>
<td align="right">123<td>
<td align="left">123<td>
<td align="center">123<td>
<td align="left">123<td>
</tr>
<tr>
<td align="right">1<td>
<td align="left">1<td>
<td align="center">1<td>
<td align="left">1<td>
</tr>
</table>
Simple table indented two spaces:

<table>
<caption>Demonstration of simple table syntax.</caption><tr>
<th align="right" style="width: 15%;">Right<th>
<th align="left" style="width: 8%;">Left<th>
<th align="center" style="width: 16%;">Center<th>
<th align="left" style="width: 12%;">Default<th>
</tr><tr>
<td align="right">12<td>
<td align="left">12<td>
<td align="center">12<td>
<td align="left">12<td>
</tr>
<tr>
<td align="right">123<td>
<td align="left">123<td>
<td align="center">123<td>
<td align="left">123<td>
</tr>
<tr>
<td align="right">1<td>
<td align="left">1<td>
<td align="center">1<td>
<td align="left">1<td>
</tr>
</table>
Multiline table with caption:

<table>
<caption>Here's the caption. It may span multiple lines.</caption><tr>
<th align="center" style="width: 15%;">Centered Header<th>
<th align="left" style="width: 13%;">Left Aligned<th>
<th align="right" style="width: 16%;">Right Aligned<th>
<th align="left" style="width: 33%;">Default aligned<th>
</tr><tr>
<td align="center">First<td>
<td align="left">row<td>
<td align="right">12.0<td>
<td align="left">Example of a row that spans multiple lines.<td>
</tr>
<tr>
<td align="center">Second<td>
<td align="left">row<td>
<td align="right">5.0<td>
<td align="left">Here's another one. Note the blank line between rows.<td>
</tr>
</table>
Multiline table without caption:

<table>
<tr>
<th align="center" style="width: 15%;">Centered Header<th>
<th align="left" style="width: 13%;">Left Aligned<th>
<th align="right" style="width: 16%;">Right Aligned<th>
<th align="left" style="width: 33%;">Default aligned<th>
</tr><tr>
<td align="center">First<td>
<td align="left">row<td>
<td align="right">12.0<td>
<td align="left">Example of a row that spans multiple lines.<td>
</tr>
<tr>
<td align="center">Second<td>
<td align="left">row<td>
<td align="right">5.0<td>
<td align="left">Here's another one. Note the blank line between rows.<td>
</tr>
</table>