Skip to content

Tables

Tables use pipe syntax. Every table opens with {| and closes with |}, each on its own line.

MarkerMeaning
`{`
`}`
`-`
!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:

RegionCapital
CalpheonCalpheon City
MediahAltinova

Cell attributes

Put attributes before a single | inside a cell:

| style="text-align:center" | centered

Table, 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:

ClassEffect
wikitable-cardOn narrow screens each row becomes a labeled card. The engine reads the header cells and tags each data cell with its column label.
wikitable-stackCells stack vertically (CSS only).
wikitable-pinfirstKeeps the first column pinned while the rest scroll (CSS only).

HonoWiki Engine guide