How do use the currentTiddler in a filter?

Gotta admit that I’m pretty cheesed off right now since I delayed asking for help in favor of trying to bash my head through it myself.

Here’s the situation.

Fantasy setting has gods.
Gods have worshipers.
I opted for putting the gods someone worships in a custom field.
Then I wanted to make a generic ‘worshiper lister’ that the gods can use, to search for themselves in those fields with the ‘currentTiddler’

here is what I’ve pushed through various internet searched permuations of fruitlessly trying to extract the damn title for that search

<<list-links filter:"[contains:worshipsGod[<<currentTiddler>>]]">>

Just image a whole slew of tag {!!title} with one, two three curly braces, etc

Screw all of that, spoonfeed me. Such an important aspect “currentTiddler” and even the Grok Tiddlywiki thing seems to skimp on it.

In filter syntax, the brackets you use indicate how to process the filter operand:

  • square brackets surround literal values
  • angle brackets surround variable/macro references
  • curly brackets surround tiddler field references

Also, in filter syntax, the brackets are single, rather than doubled like they are in wikitext.

Thus, for your specific example, you would write:

<<list-links filter:"[contains:worshipsGod<currentTiddler>]">>
4 Likes

That works, thanks.
I’m still very new etc. The ‘nested’ brackets worked for other things, so I went with that.

This also used that
https://groktiddlywiki.com/read/#Text%20Substitution

But I suppose that it works on a ‘per filter component’ and since this one only had ‘contains’ it’s just one bracket?

Anyway, thanks again.

On filters there is value understanding there is one outer square brackets that indicates the beginning and end of a “filter run” then within that we may have literal titles [tiddlername] and the others @EricShulman mentioned.