ARG: a silly "tPt" template !
On Monday, May 9, 2022 at 8:00:04 PM UTC-3 Charlie Veniot wrote:
> 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 (*t*emplate *P*retty *t*itle) tiddler:
>
> ```
> <$text text={{{ [<currentTiddler>split[#️⃣]first[]] }}} />
> ```
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1143838b-148e-4dc1-83db-c50560c90550n%40googlegroups.com.