Help:Table explains how to build tables in wikitext.

Basic structure[edit source]

{| class="wikitable"
|+ Caption
! Heading 1 !! Heading 2
|-
| Cell 1 || Cell 2
|-
| Cell 3 || Cell 4
|}
  • {| opens the table and |} closes it. class="wikitable" gives it the standard borders and shading.
  • |+ is the caption. ! starts a heading cell, | a normal cell, and |- a new row.
  • Cells on one line can be separated with || or !!.

Tips[edit source]

  • Keep tables simple: readers on phones struggle with very wide tables.
  • Headings and captions make tables readable by screen readers; use them.
  • For styling one cell, add attributes before a single pipe: | style="text-align:right" | 42.

See also[edit source]