piped links: show the 'label' part

59 views
Skip to first unread message

CarloGgi

unread,
Oct 9, 2021, 8:45:04 AM10/9/21
to TiddlyWiki
Hi everyone, how do I retrieve the 'label' -call it so- part of a wikitext's piped link in Tiddlywiki? By 'label part' I mean to say the clickable text that is shown on screen, and by 'piped link' I mean to say something like `[[true_link|label part]]`.
The 'links[]' filter operator only returns the 'true_link' part of the piped link, which is quite consistent with the operator's name: is there a different operator to retrieve the 'label' part?

Thanks,
CG

CarloGgi

unread,
Oct 9, 2021, 9:00:43 AM10/9/21
to TiddlyWiki
actually, a better subject would have been 'find the label part of a piped link in a filter'

PMario

unread,
Oct 9, 2021, 2:11:52 PM10/9/21
to TiddlyWiki
> is there a different operator to retrieve the 'label' part?

I'm sorry: No.

It is: [[label|tiddler-name]]  btw.

I did create the uni-link plugin that allows you to use aliases, like:

[[alias name|?]] ... Then the tiddler itself needs an aliases - field eg:

title: Anikin Skywalker
aliases: [[darth vader]] [[the chosen one]]

can be referenced by either [[Darth Vader|?]] or [[tHe chOOsen one|?]]

Both alias links will be valid, since aliases are _not_ case sensitive.

The plugin can be found at: https://wikilabs.github.io/editions/uni-link/#GettingStarted .. Have a look at the video!
have fun
mario

CarloGgi

unread,
Oct 13, 2021, 2:14:46 PM10/13/21
to TiddlyWiki
Thanks PMario, not was I was looking for but worth seeing. I'm using Tiddlywiki to (try to) take notes on Arabic language, which has a right-to-left script, that's why in my case the label is displayed to the right of the pipe | character.

Regards,
CG
Reply all
Reply to author
Forward
0 new messages