LaCava Research Wiki

Initiated September 2017

Simpler Table Macros

10th January 2020 at 11:18am

Each column is a tiddler, rows are fields

code: <<ColumnTable '[tag[Column Data]]'>>

Column Data Thing Column Data Thing 1 Column Data Thing 2

Each row is a tiddler, columns are fields

code: <<RowTable '[tag[Column Data]]'>>

Column Data Thing
Column Data Thing 1
Column Data Thing 2

Or list both columns and rows

When you do this the difference between ColumnTable and RowTable is if column headers are tiddlers with the rows stored in the fields of the tiddlers or if the row headers are tiddlers with the columns stored in fields. This is important because field names have more restrictions that tiddler titles.

code: <<ColumnTable '[tag[Column Data]]' 'first second fifth'>>

Column Data Thing Column Data Thing 1 Column Data Thing 2

code: <<RowTable '[tag[Column Data]]' 'third second fifth'>>

Column Data Thing
Column Data Thing 1
Column Data Thing 2

Note that for both of them the rows and columns don't have to be existing fields or tiddlers, you can create a table that doesn't use existing tiddlers and when you edit the values for each cell the tiddler is created.

code: <<ColumnTable """[[This Tiddler]][[Does not Exist]]""" "[[these_ones]][[must_be]][[valid]][[field_names]]">>

Does not Exist This Tiddler