PageRenderTime 27ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/test/target/ok/table.wiki

http://txt2tags.googlecode.com/
Unknown | 366 lines | 322 code | 44 blank | 0 comment | 0 complexity | d5c5ecebb30e391956b403d6e7102c9e MD5 | raw file
  1
  2
  3
  4
  5== Simple table ==
  6
  7{|
  8|-
  9| Cell 1-1
 10| Cell 1-2
 11| Cell 1-3
 12|-
 13| Cell 2-1
 14| Cell 2-2
 15| Cell 2-3
 16|-
 17| Cell 3-1
 18| Cell 3-2
 19| Cell 3-3
 20|}
 21
 22== Simple table + border ==
 23
 24{| border="1"
 25|-
 26| Cell 1-1
 27| Cell 1-2
 28| Cell 1-3
 29|-
 30| Cell 2-1
 31| Cell 2-2
 32| Cell 2-3
 33|-
 34| Cell 3-1
 35| Cell 3-2
 36| Cell 3-3
 37|}
 38
 39== Simple table + heading ==
 40
 41{|
 42|-
 43! Head 1-1
 44! Head 1-2
 45! Head 1-3
 46|-
 47| Cell 1-1
 48| Cell 1-2
 49| Cell 1-3
 50|-
 51| Cell 2-1
 52| Cell 2-2
 53| Cell 2-3
 54|-
 55| Cell 3-1
 56| Cell 3-2
 57| Cell 3-3
 58|}
 59
 60== Simple table + heading + border ==
 61
 62{| border="1"
 63|-
 64! Head 1-1
 65! Head 1-2
 66! Head 1-3
 67|-
 68| Cell 1-1
 69| Cell 1-2
 70| Cell 1-3
 71|-
 72| Cell 2-1
 73| Cell 2-2
 74| Cell 2-3
 75|-
 76| Cell 3-1
 77| Cell 3-2
 78| Cell 3-3
 79|}
 80
 81== Simple table + heading + border + footer ==
 82
 83{| border="1"
 84|-
 85! Head 1-1
 86! Head 1-2
 87! Head 1-3
 88|-
 89| Cell 1-1
 90| Cell 1-2
 91| Cell 1-3
 92|-
 93| Cell 2-1
 94| Cell 2-2
 95| Cell 2-3
 96|-
 97| Cell 3-1
 98| Cell 3-2
 99| Cell 3-3
100|-
101! Foot 1-1
102! Foot 1-2
103! Foot 1-3
104|}
105
106== Simple table + heading + border + centralized ==
107
108{| align="center" border="1"
109|-
110! Head 1-1
111! Head 1-2
112! Head 1-3
113|-
114| Cell 1-1
115| Cell 1-2
116| Cell 1-3
117|-
118| Cell 2-1
119| Cell 2-2
120| Cell 2-3
121|-
122| Cell 3-1
123| Cell 3-2
124| Cell 3-3
125|}
126
127== Cell alignment ==
128
129{| border="1"
130|-
131| =======
132| =======
133|-
134| <
135| align="right" | >
136|-
137| align="center" | =
138| align="center" | =
139|-
140| align="right" | >
141| <
142|}
143
144== Heading alignment ==
145
146{| border="1"
147|-
148! =======
149! =======
150|-
151! <
152! align="right" | >
153|-
154! align="center" | =
155! align="center" | =
156|-
157! align="right" | >
158! <
159|}
160
161== Column span for cells ==
162
163{| border="1"
164|-
165| 1
166| 2
167| 3
168| 4
169|-
170| 1
171| 2
172| colspan="2" | 3 + 4
173|-
174| colspan="3" | 1 + 2 + 3
175| 4
176|-
177| 1
178| colspan="2" | 2 + 3
179| 4
180|-
181| colspan="4" | 1 + 2 + 3 + 4
182|}
183
184== Column span for headings ==
185
186{| border="1"
187|-
188! 1
189! 2
190! 3
191! 4
192|-
193! 1
194! 2
195! colspan="2" | 3 + 4
196|-
197! colspan="3" | 1 + 2 + 3
198! 4
199|-
200! 1
201! colspan="2" | 2 + 3
202! 4
203|-
204! colspan="4" | 1 + 2 + 3 + 4
205|}
206
207== Cell alignment + column span ==
208
209{| border="1"
210|-
211| =======
212| =======
213| =======
214|-
215| colspan="2" | <
216| align="center" | =
217|-
218| align="center" colspan="3" | =
219|-
220| align="center" | =
221| align="right" colspan="2" | >
222|}
223
224== Heading alignment + column span ==
225
226{| border="1"
227|-
228! =======
229! =======
230! =======
231|-
232! colspan="2" | <
233! align="center" | =
234|-
235! align="center" colspan="3" | =
236|-
237! align="center" | =
238! align="right" colspan="2" | >
239|}
240
241== Some empty cells ==
242
243{| border="1"
244|-
245| A
246| B
247| C
248| D
249| 
250|-
251| F
252| G
253| H
254| 
255| J
256|-
257| K
258| L
259| 
260| N
261| O
262|-
263| P
264| 
265| R
266| S
267| T
268|-
269| 
270| V
271| W
272| X
273| Y
274|}
275
276== Lines with different number of cells, increase ==
277
278{| border="1"
279|-
280| 1
281|-
282| 1
283| 2
284|-
285| 1
286| 2
287| 3
288|-
289| 1
290| 2
291| 3
292| 4
293|-
294| 1
295| 2
296| 3
297| 4
298| 5
299|}
300
301== Lines with different number of cells, decrease ==
302
303{| border="1"
304|-
305| 1
306| 2
307| 3
308| 4
309| 5
310|-
311| 1
312| 2
313| 3
314| 4
315|-
316| 1
317| 2
318| 3
319|-
320| 1
321| 2
322|-
323| 1
324|}
325
326== One cell table ==
327
328{|
329|-
330| Cell 1
331|}
332
333== One cell table + border ==
334
335{| border="1"
336|-
337| Cell 1
338|}
339
340== One cell table + heading ==
341
342{|
343|-
344! Head 1
345|}
346
347== One cell table + heading + border ==
348
349{| border="1"
350|-
351! Head 1
352|}
353
354== Empty lines ==
355
356{| border="1"
357|-
358| 
359|-
360| 
361|-
362| 
363|}
364
365<!-- wiki code generated by txt2tags (http://txt2tags.org) -->
366<!-- cmdline: txt2tags -q -\-no-rc -i table.t2t -t wiki -->