I'm picking up this thread 
<https://groups.google.com/forum/#!searchin/TiddlyWiki/$24fields%7Csort:relevance/tiddlywiki/yf-LVU6MM70/kIZAJEKmAwAJ>
 
from May 2016.

I'm interested in listing the fields in a tiddler, using a template. Here 
is the code of my current template, which has two methods of accomplishing 
this task. Both work (!)

My question: How can I get Method One to place a line break after teach 
name/value pair? Seems that would be more efficient and more elegant than 
method Two, which works well enough, but requires six lines rather than one 
line of code. I've just discovered the $fields command, and am exploring 
uses for it. Thanks! //steve.

<$list filter="[is[current]tag[wish]]">
<h1>One</h1>
<$fields template='$name$: $value$'/>

<h2>Two</h2>
<$wikify name=tid text={{!!title}}>
<$list filter="[<tid>fields[]] -[[text]]" variable="fieldname">
<$text text=<<fieldname>>/>:
<$view tiddler=<<tid>> field=<<fieldname>>/><br>
</$list>
</$wikify>


</$list>




<hr>
^^[[wish template]]^^
</$list>


Th:

-- 
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 post to this group, send email to [email protected].
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/3f642461-969c-4d9a-a56a-78fd48c494fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to