Thanks Tones!
Do you think it would be helpful if a shorthand like {{Tiddler to link
to||MyTemplate!!template}} worked? Maybe I should make a feature request?
On Monday, 26 July 2021 at 01:11:17 UTC+1 TW Tones wrote:
> Si,
>
> Yes you can, *apply a template stored in the field of another tiddler?*
> and/or find a *workaround*.
>
> Keep in mind the double curly braces are in face a short hand version of
> using the transclude widget.
>
> Because you are referencing the current tiddler using the !!title you
> should be able to do this;
>
> <$tiddler tiddler="Tiddler to link to">
> <$transclude tiddler="MyTemplate" field="template"/>
> </$tiddler>
>
> <$transclude tiddler="MyTemplate" field="template"/> works on the current
> tiddler.
>
> Since there are a few combinations of this it would take time to give an
> exhastive answer, so please try this first.
>
> Tones
>
> On Monday, 26 July 2021 at 05:05:52 UTC+10 Si wrote:
>
>> Say for example I have the following tiddler:
>>
>> title: MyTemplate
>> text: Hello
>> template: <$link to={{!!title}}> {{!!title}} </$link>
>>
>> I thought I would be able to call this template in another tiddler like
>> this:
>>
>> {{Tiddler to link to||MyTemplate!!template}}
>>
>> But alas not. It seems like the template must be stored in the text
>> field. Is this correct? Is there a suitable workaround?
>>
>> Thanks in advance for your help.
>>
>
--
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/8e5d1e75-7394-4d3d-bf88-faf63f6e7e1fn%40googlegroups.com.