Tables

table { rows: | … | } renders a tabular data grid using WCL's native pipe-row syntax. The first row becomes the <thead>; the remaining rows go in <tbody>.

Authoring

A table previewed inside a card — note the inline-formatted cells:

NameRoleYears
AliceDev3
BobOps5
table {
  rows:
    | "Name"  | "Role"     | "Years" |
    | "Alice" | "**Dev**"  | 3       |
    | "Bob"   | "_Ops_"    | 5       |
}

Cells

Cells are expressions in the row schema's field positions. utf8 cells run through the inline pattern engine, so bold, italic, inline code, links, icons, and math all work inside cells. Numeric / boolean / symbol cells stringify.

Pipes in cells

A literal pipe (|) outside a quoted cell will split the row. Wrap any cell that contains pipes — e.g. an inline code example showing || — in a string literal.

Fields

PropertyTypeRequiredDescription
ididentifiernoOptional explicit HTML id.
classlist<utf8>noOptional class list applied to the <table> (e.g. to override wdoc-table).
headerlist<utf8>noOptional header row for the computed-table form (omit for a header-less table).
rowslist<list<utf8>>noThe pipe-row data (or computed rows) — with pipe syntax the first row is the header, the rest are body rows.