[tw5] Just a silly "tTxt" template

Definitely nothing revolutionary here, but in case it gives you ideas.

I often reuse tiddler titles, and I distinguish them by adding suffixes to the titles, with a unicode character separating the parts of the title.

First part of the title has what I like to display when doing transclusions.

The second part being the suffix which I do not want to show.

For example, I have a scenario in which I want to display the title of some tiddler, name of that tiddler being in a variable called “thisGuy”.

{{{ [<thisGuy>] || tPt }}}

(Although I could setup this up with a macro, I prefer this syntax. It is a mystery…)

The tPt (template Pretty title) tiddler:

<$text text={{{ [<currentTiddler>split[#️⃣]first[]] }}} />

ARG: a silly “tPt” template !

1 Like