[tw5] Re: Embedding tiddler title in image URL

2021-06-23 Thread PMario
Hi, The docs can be found at: https://tiddlywiki.com/#Transclusion%20in%20WikiText Also click the links at the end of the tiddler!! -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from

[tw5] Re: Embedding tiddler title in image URL

2021-06-23 Thread PMario
On Wednesday, June 23, 2021 at 9:17:46 AM UTC+2 cjec...@gmail.com wrote: Mini-rant: all these different syntaxes are just a tad confusing :) > Sometimes {{..}}, sometimes {{{..}}}, sometimes <<..>>, sometimes $(..)$, > probably others I haven't stumbled on yet. Hard to keep track. > We do have

[tw5] Re: Embedding tiddler title in image URL

2021-06-23 Thread cjec...@gmail.com
Hey, cool! The $(..)$ syntax was the key. It also works within tiddler transclusion, e.g., {{$(currentTiddler)$ Discussion}}, which allowed me to finished the template. My main tiddlers now just have the single line <> and everything works. Mini-rant: all these different syntaxes are just a tad

[tw5] Re: Embedding tiddler title in image URL

2021-06-22 Thread Darth Mole
Ok so I was kind of close lol. I didn't use the $(...)$ because I thought the vars that created that in the code I had seen was specific to the buttons. I also didn't realize that with core variables they didn't need to be set if you were using the same name. Thanks Eric! On Wednesday, June 23,

[tw5] Re: Embedding tiddler title in image URL

2021-06-22 Thread Darth Mole
wow, I'm really sorry. If you remove the enclosing [ and ] on the img tag code and save it, at least on mine, it displays the tiddler title. So when it was a broken img after I added the [ ] on either end I didn't think to check to see if it was still working. Sorry about that. Also it seems tha

[tw5] Re: Embedding tiddler title in image URL

2021-06-22 Thread Eric Shulman
On Tuesday, June 22, 2021 at 7:45:51 PM UTC-7 cjec...@gmail.com wrote: > ...embed the tiddler title in the url, i.e.: > [img[images/{{!!title}}.jpg]] > But of course that just gets read literally. I've also tried using a > variable with the same result: > <$set name="image" value="images/{{!!titl

[tw5] Re: Embedding tiddler title in image URL

2021-06-22 Thread cjec...@gmail.com
Thanks for the quick reply, and for the code. Unfortunately, it's not working for me. Here's what I've done. 1. Download a fresh copy of Tiddlywiki 2. Create a tiddler called "Test". 3. Copy/paste your code into "Test" and save. I end up with a broken image icon. When I right click and choose "o

[tw5] Re: Embedding tiddler title in image URL

2021-06-22 Thread Darth Mole
I think this is what you're looking for? There may be a better way to do it, but it seems to function based on my tests. Thanks to everyone over the last two weeks that have helped me so much! I wouldn't have been able to answer someone's question like this otherwise. \define linkcreation() [im