Thank you so much !

On Wednesday, March 23, 2022 at 1:46:24 PM UTC+4 Eric Shulman wrote:

> First, you'll need to use the `<$transclude>` widget with optional 
> parameter `mode=block`.  This will allow the transclusion to properly 
> handle the bullet items contained in the transcluded tiddler.
>
> Then, to insert the transcluded bullet items at a level below the current 
> level, you'lll need to put the `<$transclude>` widget on the same line as 
> the item that is it's "parent" in the target bullet list.
>
> Like this:
> ```
> * Foo
> * Bar
> * Baz
> ** Mumble
> ** Frotz <$transclude tiddler="A" mode=block/>
> ** Gronk
> ```
>
> The result should look like this:
>
>    - Foo
>    - Bar
>    - Baz
>       - Mumble
>       - Frotz
>          - this
>          - that
>       - Gronk
>    
> enjoy,
> -e
> On Wednesday, March 23, 2022 at 2:05:15 AM UTC-7 Eric N wrote:
>
>> Hi,
>>
>> I have a list in a tiddler A, and I want to transclude it into a tiddler 
>> B while adapting the list indentation to the level where it is inserted in 
>> B.
>>
>> Say A is:
>>
>> ** this*
>> ** that*
>>
>> And B is:
>>
>> ** 1*
>> ** 2*
>> ** 3*
>> *** 3.1*
>> *** 3.2*
>>
>> Then I want to type a command in B:
>>
>> ** 1*
>> ** 2*
>> ** 3*
>> *** 3.1*
>> *INSERT_WITH_INDENT(A)*
>> *** 3.2*
>>
>> In order to obtain:
>>
>> ** 1*
>> ** 2*
>> ** 3*
>> *** 3.1*
>>
>> **** this*
>> **** that*
>> *** 3.2*
>>
>> And not what a standard transclusion with *{{A}}* would give:
>>
>>
>> ** 1*
>> ** 2*
>> ** 3*
>> *** 3.1*
>>
>> ** this*
>> ** that*
>> *** 3.2*
>>
>> Does it make sense ? Any idea how to do it ?
>>
>> For info, I work with lists a lot, and I'd like to reuse information 
>> without copy pasting, and the places I want to reuse a given list are lists 
>> themselves, however with different indentation levels.
>>
>> Best,
>> Eric
>>
>

-- 
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/432a1b42-f744-414d-92c7-83fcf99db4f9n%40googlegroups.com.

Reply via email to