<$list filter=<<YourFilter>>>
<<currentTiddler>>,
</$list><$list filter='[tag[HelloThere]]+[butlast[]]'><<currentTiddler>>,</$list><$list filter='[tag[HelloThere]]+[last[]]'><<currentTiddler>></$list>--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d9c68edf-14ff-48e9-a649-9cd43f294810%40googlegroups.com.
\define InnerSplitCommaList()<$list filter="""[<CurrentList>splitbefore[,]removesuffix[,]]""" variable=CurrentItem emptyMessage="""<$link to=<<CurrentList>>><<currentList>></$link>"""><$link to=<<CurrentItem>>><<CurrentItem>></$link><$set name=CurrentList filter='[<CurrentList>removeprefix<CurrentItem>removeprefix[,]]' emptyValue=<<CurrentList>>><<InnerSplitCommaList>></$set></$list>\end
\define SplitCommaList(list)<$set name=CurrentList value="""$list$"""><$set name=CurrentList filter='[<CurrentList>addsuffix[,]]'><<InnerSplitCommaList>></$set></$set>\end
Usage:
Directly give the list:
`<<SplitCommaList """a,b,c""">>`
<<SplitCommaList """a,b,c""">>
Using a text reference:
`<<SplitCommaList {{!!field_with_comma_list}}>>`
<<SplitCommaList {{!!field_with_comma_list}}>>--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8179a850-9024-4125-a6d7-96eeddf17a3f%40googlegroups.com.
[...] render a list of items as a comma-separated list.
<div class="commas"><$list filter="..."/></div>
<style>
.commas span:not(:last-child):after {content:", ";}
</style>