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