[tw5] Re: confused by URL generation

2020-09-23 Thread Jean-Pierre Rivière
@Tones: Many thanks for this tip. I was not aware of such a use for the "target" attributes. This is indeed very appropriate to my use case! And to get it on a different tab, I can click with the middle mouse button. That's a winner! Le mercredi 23 septembre 2020 à 07:16:27 UTC+2, TW Tones a éc

[tw5] Re: confused by URL generation

2020-09-22 Thread TW Tones
Just a general suggestion; When providing a large number of links to similar resources on the same external website/wiki I personally construct links based on the html a element. The key reason is we have access to the target parameter. You still use similar techniques to create the links but t

[tw5] Re: confused by URL generation

2020-09-21 Thread Jean-Pierre Rivière
@Joshua: Thank you for your answer. I had tries with <$macrocall> but it was not the gotcha. What I had wrong was really, in retrospect, the art of puting [, ( and < right within my filters. I am still dumbfounded by what the way-that-works vs the way-that-I-would-thought-would-work. I'm now lo

[tw5] Re: confused by URL generation

2020-09-21 Thread Jean-Pierre Rivière
Thanks Eric. This is what I needed. Now, I can go further. I have several refrences to WCAG within each tiddler concerned, and I'd like to store them inside a tiddler field named "wcag21tech" and a typical contents would be "G8 G58 G78 G173 H96 SM1 SM2 SM6 SM7". This should be translated as a l

[tw5] Re: confused by URL generation

2020-09-20 Thread Eric Shulman
On Sunday, September 20, 2020 at 3:30:48 PM UTC-7, Jean-Pierre Rivière wrote: > > I want to generate URL. The aim would be to generate something like that: > [[G8|https://www.w3.org/WAI/WCAG21/Techniques/general/G8]] > [[H96|https://www.w3.org/WAI/WCAG21/Techniques/html/H96]] > with G8 or H96 a in

[tw5] Re: confused by URL generation

2020-09-20 Thread Joshua Fontany
Hi, I know that TW syntax can be overwhelming. Let's cut this back to its simplest form. Macros are used primarily for Text Replacement. That is, then the macro is "called" the wiki-text parser tries to complete all text replacement in the macro-body using the inputs, and _then_ it parses the