Referring to a tiddler name with a space

I have a tiddler that is included as a field value in another tiddler but it has a space in the name so I enclose it in square brackets so that I get a hyperlink [[my tiddler]].

Now when I click that link it takes me to a tiddler that does not exist i.e. “my tiddler” (without the quotes). I would like that tiddler to exist, but how can I refer to it as both [[my tiddler]] and “my tiddler” so that I can access it both directly and from the original tiddler that has the link to it?

I don’t understand your question. … but

If you want a tiddler to exist, you need to create it. TW does not create tiddlers automatically, except there are some user actions like action-createtiddler … involved.

Square brackets are only needed if the field contains a list of tiddlers. If the field contains only one tiddler name you can omit the brackets and use it with something like:
<$link to={{!!myfield}}/>

Fred

Apologies to @pmario it was probably confusing, but I have gone ahead and created the Tiddler. Now my issue is that I need to create a list in that Tiddler to link to the other Tiddlers that have that field populated with the Title. So I have some code like this:

<$list filter='[all[tiddlers]myField<currentTiddler>sort[]]'>

</$list>

It does not work though because the Title of the currentTiddler is “my tiddler” whereas the field value in the other Tiddler appears as [[my tiddler]]

So my question is how do I tweak my code to get the square brackets around ?

You can try this list in “my tiddler”

<$list filter="[all[tiddlers]search:myfield<currentTiddler>]">

</$list>

Using the correct filter operator(s), you don’t need to include in brackets in the filter expression. The above will find a tiddler named “my tiddler” in a few different instances:

myfield: my tiddler

myfield: [[my tiddler]]

myfield: hello [[my tiddler]] testing123

2 Likes