Newline between results for transclusion with a template

I’m building an itinerary, and I’d like a tiddler for each day, with an overview tiddler that lists each day and some specific properties.
So far I have tiddlers for the days, titled 07_22, 07_23, 07_24, etc. Each is tagged with “itin_day”, and contains a field “park_name” with a value…
I have a tiddler named “TestTemplate” that contains:

{{!!title}}: my parkname is {{!!park_name}}
   <- have tried with and w/o this blank line

Then I have a tiddler “Itinerary”, that contains:

{{{ [tag[itin_day]] || TestTemplate }}}

However, when it renders, the body contains:

07_21: my parkname is yosemite 07_22: my parkname is yellowstone 07_23: my parkname is yellowstone 07_24: my parkname is yosemite

  1. How do I manage to get newlines between each entry returned by the transclusion so that they show up as a list of days?
  2. How can I make the title of each entry render as a link to the tiddler?

I feel like I’m so close to having something super useful, but am missing something fundamental.

Woah, okay. I found a solution to the first question, I added an html
in the template to get:
{{!!title}}: my parkname is {{!!park_name}}<br>

That gets me

07_21: my parkname is yosemite
07_22: my parkname is yellowstone
07_23: my parkname is yellowstone
07_24: my parkname is yosemite

Everything is still basic text though, so question 2 remains, how to get the page title as links to the original tiddler.

Replace {{!!title}} with <$link/>

Notes:

  • The full syntax for the $link widget is: <$link to="TiddlerTitle">display text</$link>
  • When no parameters are provided, to=... defaults to <<currentTiddler>>
  • When no inner content is provided, the $link widget defaults to displaying <<currentTiddler>>
  • For this usage, <<currentTiddler>> and {{!!title}} are synonymous.

Thus, the most succinct form is just: <$link/>, which is equivalent to

<$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>

enjoy,
-e

2 Likes

You may find this useful as an alternative https://liststyles.tiddlyhost.com/