Hello all,
I’m still very new to Tiddlywiki and as many before me, I seem to be struggling with the syntax (also because many questions where answered before transclusion was a thing?)
In any case:
I have a tiddler named “Air spells”.
Inside that tiddler, I have a table listing all the tiddlers that have “Air spells” in their “college” field (the field value is same than the tiddler title listing them).
What I’m trying to do is very simple: use the title of the tiddler within the list macro to build said list. That way, the contents of those listing tiddlers can be the same for different values of the college field, I don’t have to type the value of the college since I’m grabbing it from the title of the listing tiddler.
Currently I have this content for the table:
<table>
<tr><th align="center">Spell name</th><th>Class</th><th>Base cost</th><th>Additional cost</th><th>Time to cast</th><th>Duration</th><th>Prerequisites</th><th>Notes</th></tr>
<$list filter="[tag[GURPS Spell]field:college[[title]]sort[]]" emptyMessage="<tr><td>No <<currentTiddler>> found.</td></tr>">
<tr>
<td align="left"><$link to=<<currentTiddler>> ><<currentTiddler>></$link></td>
<td align="left">{{!!class}}</td>
<td align="left">{{!!base_cost}}</td>
<td align="left">{{!!additional_cost}}</td>
<td align="left">{{!!casting_time}}</td>
<td align="left">{{!!duration}}</td>
<td align="left">{{!!prerequisit}}</td>
<td align="left">{{!!Summary}}</td>
</tr>
</$list>
… But I get an error [Filter error: Missing [ in filter expression](#Filter error: Missing [ in filter expression)
; of course if I replace [title]
by Air spells
it works.
Can someone explain to me what obviously basic mistake I am making, please?
Thank you!