Thanks a lot Eric, that does the trick!

@ TW Tones

I did consider separate tiddlers, but for this specific case I decided 
against it just because of the difficulty of jumping around to different 
tiddlers when editing entries in the list.

Of course plugins like saq's streams may be another good option that solve 
this problem nicely.

On Saturday, 8 August 2020 at 19:59:18 UTC+1 Eric Shulman wrote:

> On Saturday, August 8, 2020 at 11:01:41 AM UTC-7, si wrote:
>>
>> I have a typed list in a tiddler:
>> # First entry
>> # Second entry
>> # Third entry
>> I want to transclude it into another tiddler, and then add additional 
>> elements to the list:
>>
>
> It's not pretty, but this will work:
> <$vars newline="
> ">
> <$vars list={{List Tiddler}}>
> <$vars list={{{ [<list>addsuffix<newline>addsuffix[# Fourth entry]] }}}>
> <$vars list={{{ [<list>addsuffix<newline>addsuffix[# Fifth entry]] }}}>
>
> <<list>>
>
> 1) The first $vars defines a literal newline character (note the line 
> break in between quotes is essential!)
> 2) The next $vars fetches the list content from the other tiddler
> 3) Each subsequent $vars appends a newline plus another numbered entry
> 4) The <<list>> shows the result (note the linebreak before this line is 
> also essential)
>
> As an alternative, let's suppose you have two source tiddlers, "List One" 
> and "List Two",
> where "List One" contains:
> # First entry
> # Second entry
> # Third entry
>
> and "List Two" contains:
> # Fourth entry
> # Fifth entry
>
> Note that each source tiddler must end with a newline.
>
> Then, you can combine these two source lists like this:
> <$vars list={{{ [{List One}addsuffix{List Two}] }}}>
>
> <<list>>
>
> -e
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d7f277c-ced7-4faf-918e-adfef4c48286n%40googlegroups.com.

Reply via email to