Appearance
Tables
Tables use pipe syntax. Every table opens with {| and closes with |}, each on its own line.
| Marker | Meaning |
|---|---|
| `{ | ` |
| ` | }` |
| ` | -` |
! | A header cell |
| | A data cell |
| ` | +` |
|| | Separates cells written on one line |
!! | Separates header cells written on one line |
Example
{| class="wikitable"
|+ Regions of the world
|-
! Region !! Capital
|-
| Calpheon || Calpheon City
|-
| Mediah || Altinova
|}renders roughly as:
| Region | Capital |
|---|---|
| Calpheon | Calpheon City |
| Mediah | Altinova |
Cell attributes
Put attributes before a single | inside a cell:
| style="text-align:center" | centeredTable, row, and cell attributes are sanitized against the allowlist (see Allowed attributes).
Indented tables
Prefix the opening {| line with : to indent the whole table (one : per level).
Responsive helpers
Add a class on the {| line for mobile-friendly behavior:
| Class | Effect |
|---|---|
wikitable-card | On narrow screens each row becomes a labeled card. The engine reads the header cells and tags each data cell with its column label. |
wikitable-stack | Cells stack vertically (CSS only). |
wikitable-pinfirst | Keeps the first column pinned while the rest scroll (CSS only). |