Dash in tiddler titles outputs differently when filtering

Hello, I am not sure how to approach this issue, though some comments would be appreciated.

I was running some exercises while going through the excellent Grok TiddlyWiki learning tool, and found that the output when listing tiddlers that have a dash in their name shows some kind of error. Wonder if using dashes in tiddler titles is discouraged.

See second and third filter expressions in the picture

Cheers,

Alfonso

The output in the second and third filters (<<currentTiddler>><br>) relies upon automatic detection of WikiLinks, which recognizes patterns of “CamelCase” characters as tiddler titles. Note that dash characters are not included in this pattern. Thus, the “EmployeeSix” portion of the tiddler title is displayed a link (because it uses CamelCase), but the remainder of that tiddler title, starting with the dash, is not part of that link.

To properly output tiddler links, you should use the <$link/> widget.

see https://tiddlywiki.com/#LinkWidget for details.

enjoy,
-e

1 Like

Your understanding is outstandingly cat like …

TT

As Eric notes, only the camelcase part in the title is linkified when you use <<currenTiddler>> (which admittedly is not right IMO)

Good to know: You’ve typed

<$list ...>
    <<currentTiddler>><br>
</$list>

but this is unnecessary, as you can instead leave out that middle row and in its place leave an empty row (yes, that does look funny but it’s how it should be).

As Eric notes you should also check out the LinkWidget as it it very useful and you can do

<$list ...>
    <$link/><br>
</$list>

Actually, you can even do <$list ...><$link/><br></$list> since you type the explicit break.

Thank you all for your prompt response :grinning:

1 Like