Using "Vertical bar" in Tiddler Title

278 views
Skip to first unread message

Mohamed Amin

unread,
Sep 15, 2020, 8:39:45 AM9/15/20
to tiddl...@googlegroups.com
Hello,

Some of YouTube Videos currently using "Vertical Bars" (|) in their titles (ex. https://www.youtube.com/watch?v=p-MNSLsjjdo).
And as we all know, that character is reserved within TW5, So, What is the best way to work with such "piece of information"? For Example:  If I created a Tiddler with that  Title, How do I make a link to it?

My current workaround:-
1- Rename the title (information distortion)
2- Use "Caption" to store the video name (including "|") and chose a "Title" without "|" (information redundant)

Thanks in Advance

talha131

unread,
Sep 15, 2020, 12:36:03 PM9/15/20
to TiddlyWiki

I asked a similar question in the past. Tones and other users shared their worthy suggestions. You can read them here

  1. https://groups.google.com/forum/#!topic/tiddlywiki/iu-y7CVx6dg
  2. https://groups.google.com/d/msg/TiddlyWiki/WWKlkMR-zfs/7nl_ARXqBwAJ
  3. https://groups.google.com/d/msg/tiddlywiki/iu-y7CVx6dg/InmsYmYpAAAJ

Personally I would solve this problem this way

  1. Always store the original title in a field like youtube-title (you can use bar and other special characters
  2. Store the url in a field like youtube-url
  3. Set the tiddler title to a a valid string which reflects the Youtube title but does not include special characters

Next I would use templates to display this information in every tiddler. If I have to search then I would use list field to search in the youtube-title field.

Here you can see, I use template to display my source-url field

TW Tones

unread,
Sep 15, 2020, 8:06:03 PM9/15/20
to TiddlyWiki
Mohamad,

Talha has given you a great comprehensive answer. 

I will just add that you can set the caption field on any tiddler and lists can use this rather than the tiddler title. This allows icons and special characters to be used, even the same name in more than one tiddler (Why you would I am not sure).

Just ask if you need more detail when you get to acting on what you have learned here.

Regards
Tones

Mohamed Amin

unread,
Sep 16, 2020, 3:04:09 PM9/16/20
to TiddlyWiki
Thanks a lot Talha and TW Tones, I really appreciate your help here

I ended up using a field name "youtube_tile" (as per Talha advice) and using the below as a filter to get the "Tiddler link" from any other Tiddler:

''
<$list filter="[all[]field:youtube_title[The Quantum Experiment that Broke Reality | Space Time | PBS Digital Studios]]"/>
''
Or
''
<$set name="aa" value="""The Quantum Experiment that Broke Reality | Space Time | PBS Digital Studios""">
    <$list filter="[all[]field:youtube_title<aa>]">

    </$list>
</$set>
''

Thanks again

PMario

unread,
Sep 17, 2020, 12:27:17 PM9/17/20
to TiddlyWiki
On Tuesday, September 15, 2020 at 2:39:45 PM UTC+2, Mohamed Amin wrote:
Some of YouTube Videos currently using "Vertical Bars" (|) in their titles (ex. https://www.youtube.com/watch?v=p-MNSLsjjdo).
And as we all know, that character is reserved within TW5, So, What is the best way to work with such "piece of information"? For Example:  If I created a Tiddler with that  Title, How do I make a link to it?

Replace them in TW titles. done. no further problems

If you need to link, use the <$link widget. The "to" parameter should be able to handle it, but I doubt the web can handle urls with | in it.

-m
Reply all
Reply to author
Forward
0 new messages