I’m having one of my periodic syntax brain-farts.
This properly links to the current tiddler in a table cell:
<td><$link>{{!!title}}</$link></td>
But all the tiddlers in this table share a common prefix, which I’d like to remove. And I can’t seem to figure out the syntax. This removes the prefix:
<td><$link>{{{ [{!!title}removeprefix[MyPrefix: ]] }}}</$link></td>
(Side question: is there a simpler version of this?)
But then the link is to the non-existent prefix-removed tiddler. That is, for a tiddler with the title MyPrefix: Some Title
, the link is the same as the body, Some Title
. The body is what I want, the link is not.
It’s not clear to me why this doesn’t fix it:
<td><$link to=[{currentTiddler!!title}]>{{{ [{!!title}removeprefix[MyPrefix: ]] }}}</$link></td>
but it has the same behavior as the previous attempt.
I’m sure it’s much simpler than I’m making it, but I’m just not seeing it.
How should I go about this?