Optionally, you may supply four arguments to format the list or set as an HTML list:
List/Set.format("listPrefix","itemPrefix","itemSuffix","listSuffix")
For example:
$Classes.format("<ul>","<li>","/li>","</ul>")
will return HTML code for a bulleted list with each set member marked up as a list item. Note that the tags must be in double quotes. To have each element on a separate line and indent the items add tabs and line breaks:
$Classes.format("<ul>\n","\t<li>","</li>\n","</ul>\n")
To make this easier to use in a code export context, you might pass the output of format into another attribute and call the latter within the template with a ^value()^ code. By a repeated use of format it is possible to export lists of links.
Because some people’s eyes are offended by " straight double quotes the forum software substitutes ‘typographic’ quotes, i.e .“” for "".
Action code never uses/allows typographic quotes to mark string (i.e. text) inputs. So, unless you are looking at very occasional code that intentionally is trying to handle typographic quote, when copy/pasting to Tinderbox, change the quotes to ‘straight’ quotes.
The format string expect 4 parameters separated by commas. You’ve only provided 3—by missing out a comma and a set of double quotes. Let’s break it into lines to see:
^value($Tags.format(
"",
"[[",
"]]""
))^
No wonder Tinderbox is getting confused. I think you meant to use
^value($Tags.format("","[[","]] ",""))^
which breaks out as
^value($Tags.format(
"",
"[[",
"]] ",
""
))^
Notice I also added the space after the ]], as described per your idealised example. See : Tag-export-fixed.tbx (93.2 KB)
This is the point where the temptation is to blame the ‘complexity’ of the app, But, as I hope I’ve shown, this is a simply case of user error—albeit unintentional. The docs tell you 4 parameters are needed, you only provided 3. When the code fails, this is just the sort of thing to check. My break-out of to code above shows a simple low-tech way to check this sort of thing.
I accidentally withdrew my post. . . I’m reposting it!
@mwra, you are such a gift to the community. I admire your patience and understanding with non-programmers like me.
I’ve come to realize the “complexity” of the program is one of the trade-offs of the tinderbox, because a .tbx can go where you want it to go.
My lessons in returning to Tinderbox is to create something that I really want and to go after it incrementally. As I’m building my Zettelkasten TBX, I’m still adding notes and using it. Having export options is important, but no where near as vital as making good notes.
Thank you for the years of guidance and support @mwra. I have never been in an online community where one guides as consistently as you.