WikiText Table

From GM-RKB
Jump to navigation Jump to search

A WikiText Table is a document table expressed in WikiText.

  • Example(s):
{| border=1
  |+ <B><i>Caption</i></B>
|-
! |Heading 1||Heading 2
|-
 | A || B
|-
 | C || D
|} 


References

2011


Basic format

{| border=1
  |+ <B><i>Caption</i></B>
|-
! |Heading 1||Heading 2
|-
 | A || B
|-
 | C || D
|}
Caption
Heading 1 Heading 2
A B
C D

Row Spans with Column Spans

{| border=1
|-
 | rowspan=3 colspan=3|A
 | D
|-
 | H
|-
 | L
|-
 | M || N || O || P
|}
A D
H
L
M N O P

Sortable Tables

 {| class="sortable" border=1 cellpadding=5px
 ! One!!Two!!Three!!Four
 |-
 | M||A||K||E
 |-
 | E||N||D||S
 |-
 | M||E||E||T
 |}
One Two Three Four
M A K E
E N D S
M E E T

Collapsible Tables


{| class="wikitable collapsible" width="200px"
! Click Here for Contents
|-
| This contains the hidden content.
|}
Click Here for Contents
This contains the hidden content.

Centered Tables

{| class="wikitable" style="margin: 1em auto 1em auto;"
|+ <B>Cells left-aligned, table centered'''
! scope="col" | Duis
! scope="col" | aute
! scope="col" | irure
|-
| dolor || in reprehenderit || in voluptate velit
|-
| esse cillum dolore || eu fugiat nulla || pariatur.
|}
Cells left-aligned, table centered
Duis aute irure
dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.