First, a note that the active community is now at talk.tiddlwiki.org. You won't need any special definitions to get what you want — it's all in basic wikitext.
See a working illustration here: https://quick-demo.tiddlyhost.com/#filtered-list-of-fields The core of the solution looks like this (substitute `prefix[b]` for whatever you need): ``` <$list filter="[<currentTiddler>fields[]prefix[b]]" variable="fieldname"> ''<<fieldname>>'': <$text text={{{ [get<fieldname>] }}}/> </$list> ``` On Saturday, March 23, 2024 at 11:45:59 AM UTC-4 [email protected] wrote: > {{!!FieldName1}} {{!!FieldName2}} {{!!FieldName3}} > > shows the values from these fields on one line. > > {{!!Fieldname1}} <br> > {{!!Fieldname2}} <br> > {{!!Fieldname3}} <br> > > Displays the values of these fields among eachother. But if the field > {{!!FieldName2}} contains no value, a blank line will be displayed. > > > \define listField(prefix:"") > <$list filter="[fields[]prefix[$prefix$]sort[title]]" variable="fieldName"> > <$view field=<<fieldName>>/> > </$list> > \end > \define listFieldBR(prefix:"") > <$list filter="[fields[]prefix[$prefix$]sort[title]]" variable="fieldName"> > <$view field=<<fieldName>>/><br> > </$list> > \end > > <<listField"A">> <<listFieldBR"A">> > <<listFieldBR"B">> > <<listFieldBR"B">> > <<listFieldBR"B">> > <<listFieldBR"B">> > <<listField"C">> > > Is also not working. > > How can I prevent an empty line if there is no value, and still ensure > that values are displayed behind or below each other? > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0cd2faf3-e465-45ba-b410-0eb8d7f44286n%40googlegroups.com.

