/test/target/ok/table.wiki
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
- == Simple table ==
- {|
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |}
- == Simple table + border ==
- {| border="1"
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |}
- == Simple table + heading ==
- {|
- |-
- ! Head 1-1
- ! Head 1-2
- ! Head 1-3
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |}
- == Simple table + heading + border ==
- {| border="1"
- |-
- ! Head 1-1
- ! Head 1-2
- ! Head 1-3
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |}
- == Simple table + heading + border + footer ==
- {| border="1"
- |-
- ! Head 1-1
- ! Head 1-2
- ! Head 1-3
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |-
- ! Foot 1-1
- ! Foot 1-2
- ! Foot 1-3
- |}
- == Simple table + heading + border + centralized ==
- {| align="center" border="1"
- |-
- ! Head 1-1
- ! Head 1-2
- ! Head 1-3
- |-
- | Cell 1-1
- | Cell 1-2
- | Cell 1-3
- |-
- | Cell 2-1
- | Cell 2-2
- | Cell 2-3
- |-
- | Cell 3-1
- | Cell 3-2
- | Cell 3-3
- |}
- == Cell alignment ==
- {| border="1"
- |-
- | =======
- | =======
- |-
- | <
- | align="right" | >
- |-
- | align="center" | =
- | align="center" | =
- |-
- | align="right" | >
- | <
- |}
- == Heading alignment ==
- {| border="1"
- |-
- ! =======
- ! =======
- |-
- ! <
- ! align="right" | >
- |-
- ! align="center" | =
- ! align="center" | =
- |-
- ! align="right" | >
- ! <
- |}
- == Column span for cells ==
- {| border="1"
- |-
- | 1
- | 2
- | 3
- | 4
- |-
- | 1
- | 2
- | colspan="2" | 3 + 4
- |-
- | colspan="3" | 1 + 2 + 3
- | 4
- |-
- | 1
- | colspan="2" | 2 + 3
- | 4
- |-
- | colspan="4" | 1 + 2 + 3 + 4
- |}
- == Column span for headings ==
- {| border="1"
- |-
- ! 1
- ! 2
- ! 3
- ! 4
- |-
- ! 1
- ! 2
- ! colspan="2" | 3 + 4
- |-
- ! colspan="3" | 1 + 2 + 3
- ! 4
- |-
- ! 1
- ! colspan="2" | 2 + 3
- ! 4
- |-
- ! colspan="4" | 1 + 2 + 3 + 4
- |}
- == Cell alignment + column span ==
- {| border="1"
- |-
- | =======
- | =======
- | =======
- |-
- | colspan="2" | <
- | align="center" | =
- |-
- | align="center" colspan="3" | =
- |-
- | align="center" | =
- | align="right" colspan="2" | >
- |}
- == Heading alignment + column span ==
- {| border="1"
- |-
- ! =======
- ! =======
- ! =======
- |-
- ! colspan="2" | <
- ! align="center" | =
- |-
- ! align="center" colspan="3" | =
- |-
- ! align="center" | =
- ! align="right" colspan="2" | >
- |}
- == Some empty cells ==
- {| border="1"
- |-
- | A
- | B
- | C
- | D
- |
- |-
- | F
- | G
- | H
- |
- | J
- |-
- | K
- | L
- |
- | N
- | O
- |-
- | P
- |
- | R
- | S
- | T
- |-
- |
- | V
- | W
- | X
- | Y
- |}
- == Lines with different number of cells, increase ==
- {| border="1"
- |-
- | 1
- |-
- | 1
- | 2
- |-
- | 1
- | 2
- | 3
- |-
- | 1
- | 2
- | 3
- | 4
- |-
- | 1
- | 2
- | 3
- | 4
- | 5
- |}
- == Lines with different number of cells, decrease ==
- {| border="1"
- |-
- | 1
- | 2
- | 3
- | 4
- | 5
- |-
- | 1
- | 2
- | 3
- | 4
- |-
- | 1
- | 2
- | 3
- |-
- | 1
- | 2
- |-
- | 1
- |}
- == One cell table ==
- {|
- |-
- | Cell 1
- |}
- == One cell table + border ==
- {| border="1"
- |-
- | Cell 1
- |}
- == One cell table + heading ==
- {|
- |-
- ! Head 1
- |}
- == One cell table + heading + border ==
- {| border="1"
- |-
- ! Head 1
- |}
- == Empty lines ==
- {| border="1"
- |-
- |
- |-
- |
- |-
- |
- |}
- <!-- wiki code generated by txt2tags (http://txt2tags.org) -->
- <!-- cmdline: txt2tags -q -\-no-rc -i table.t2t -t wiki -->