Can't thank you more. I will make the question more clearly next time.

On Wednesday, September 15, 2021 at 2:52:08 AM UTC+8 PMario wrote:

> On Tuesday, September 14, 2021 at 5:45:02 PM UTC+2 [email protected] 
> wrote:
>
>> Sorry I can't get what your meaning, I copied your code to my tw, nothing 
>> happened, 
>
>
> The topic of the OP is: How to make the templates which can show it's own 
> info not just title?  
>
> My example shows, how you can create some wikitext, that allows you to 
> show the content of the tiddler, without creating a recursion error. 
>  
>
>> what I want is a template which can change the background color of the  
>> Transclusion. 
>>
>
> That's a completely different question. 
>
> Transclusions don't have a wrapper element in the rendered output. So 
> there is nothing you can style. 
> The example you referred to, doesn't change the color of the transclusion. 
> It creates a new element with a yellow background and then transcluded the 
> title of a tiddler. It has nothing to do with coloring a transclusion. 
>
> You can import the attached file and play with it. 
>
> It contains a tiddler: tr .. which contains the template
>
> a ... contains some text
> tr-style ... contains the stylesheet with the background color setting. 
>
> The transclusion has to be called with {{tiddler name||tr}} ... There is 
> _no_ way around this. 
>
> have fun!
> -mario
>
>

-- 
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/5df58b1f-f867-4c97-bd05-5ee8eecc7209n%40googlegroups.com.

Reply via email to