My aim is to build al ist of external links from the value stored within a field of the current tiddler. This value is something like "C14 H1665 SM1113".
Thanks to a lot of help from this forum, I have been avle to build a macro which translate each of those word into an external link.
But I am unable to go any further.
The macros and filters of tiddlywiki are provided to cater for tiddler titles, like the list-links widget. I can produce the complete html that would achieve my goal with filters thanks to subfilter. But I have discovered I cannot display that html. Some mocked attemps are below:
!!! text
<$text text="""<ul><li>un</li><li><a href="#147">deux</a></li></ul>"""/>
!!! wikify sur html
<$wikify name="toto" text="""<ul><li>un</li><li><a href="#147">deux</a></li></ul>""">
<<toto>>
</$wikify>
!!! wikify sur html + wiki
<$wikify name="toto" text="""\n\n* un\n* <a href="#147">deux</a>""">
<<toto>>
</$wikify>
As you can see, even wikify seems unable to make a list.
What is the way of displaying puere html or a mix of tw5 + html?
There is a possibility with inclusion of a field. But my field cannot be included as raw. So I could process it and create an other field with the terget html. But how can I create this filed automatically? I have seen the action-setfiled widget, but I've been unable to trigger it when not associated with a button (and there is no button). My code for this attempt:
<$action-setfield field="jack" value="""<h2>html</h2> <ul> <li>un</li> <li><a href="
https://meddurenos.free.fr">deux</a></li> <li>trois</li> </ul>"""/>
<$transclude field="jack" mode="inline"/>
Could I use some clever javascript to trigger the action-setfield gagdet, with eventually an hidden button if need be?
Abandoning that track, should I go for a macro instead? Should/could it be a macro that would take as input a listed filter (use of the filter operator within a filter) -- which I don't know how to do yet? Should I write a javascript macro or filter to help me?