[tw5] Re: building a list of external links from a tiddler field

2020-10-06 Thread Eric Shulman
On Tuesday, October 6, 2020 at 7:27:50 AM UTC-7, Jean-Pierre Rivière wrote: > > \define wcagList() > > <$list filter="[enlist{!!wcag21tech}]" variable=link-code> > <$macrocall $name="wcag" ref=<> /> > > > \end > > Note also the call to the wcag macro using the macrocall widget. I would >

[tw5] Re: building a list of external links from a tiddler field

2020-10-06 Thread Jean-Pierre Rivière
OK. Thanks to you, I got these macros to get my job done. Note the padding on the ul tag to get an alignment not excessively deported to the right. \define wcag(ref) \whitespace trim <$set name="base" value="https://www.w3.org/WAI/WCAG21/Techniques;> <$set name="codeFam" filter="$ref$

[tw5] Re: building a list of external links from a tiddler field

2020-10-02 Thread TW Tones
Jean-Pierre, When we use the content of the list widget as the template to display each item, there is a different behaviour if the first line is blank or not. No line makes it inline, one blank line makes it a block, so line based wiki text is processed. ;List from [[tiddler|links-tiddler]]

[tw5] Re: building a list of external links from a tiddler field

2020-10-02 Thread Jean-Pierre Rivière
Thank you Tones. I need to adapt it to my very need, but something I have not been able to do quickly tonight is to get a list (the ul/li or ol/li kind of list) with that. for instance, in list from field, having "* <>" instead of "<>" doesn't do the tricks. I confess I don't understand why.

[tw5] Re: building a list of external links from a tiddler field

2020-10-02 Thread TW Tones
Jean-Pierre, Paste this into a tiddler and review how it works. \define link-prefix() https://www.w3.org/WAI/WCAG21/Techniques/ \define link-codes-macro() general/G10 general/G135 general/G136 failures/ F15 \define links() [[$(link-code)$|$(link-prefix)$/$(link-code)$]] \define hyper-links()

[tw5] Re: building a list of external links from a tiddler field

2020-10-02 Thread Jean-Pierre Rivière
Here is a sample of what I had written by hand: * [[G10|https://www.w3.org/WAI/WCAG21/Techniques/general/G10]]. * [[G135|https://www.w3.org/WAI/WCAG21/Techniques/general/G135]]. * [[G136|https://www.w3.org/WAI/WCAG21/Techniques/general/G136]] *

[tw5] Re: building a list of external links from a tiddler field

2020-10-01 Thread TW Tones
Jean-Pierre Rivière I am not sure what you are trying to achieve in the end. - Is this to be in the aforementioned static tiddler template? - Are you trying to generate HTML? (I have some great tips if you are) Most of Html works in its own right in tiddlers, so if you use the wikitext