Chuck et al.. Extending some transclusion and template play I have being doing recently I thought would would be a good method,
Create a colorme tiddler no tags needed perhaps use the system prefix $:/ <section style="background-color:#e0e0e0;"><$transclude tiddler=< <currentTiddler>> mode="block" /></section> Now rather than use a regular transclude use {{HelloThere||colorme}} This is using colorme as the template to display the "text field" of what you transclude. *Advanced* This makes use of the currentTiddler coming from the value where I placed HelloThere. If you want to reference (in the template colorme) the actual tiddlers name in which {{HelloThere||colorme}} was placed. you can use the variable <<storyTiddler>> *For Hackers* I observe that {{HelloThere!!description}} will display description from the HellowThere tiddler but {{HelloThere!!description||colorme}} will not I understand why and can see the view widget may resolve coloring a text reference ie tiddler!!field My Question however is how can I access the name of the field in the text reference in the colorme template (if at all)? Regards Tony On Tuesday, December 24, 2019 at 1:44:24 AM UTC+11, Chuck R. wrote: > > My system: TW5.1.19 on tiddlyspot.com, I use the latest Chrome version to > get to the wiki > > When I transclude text I'd like to make the background color different. > But I don't want to use this every time: > @@background-color:yellow; > {{tiddler1}} > @@ > > > because that's a manual process. I'd like a visual indicator of > transcluded text so I don't have to go into edit mode of a tiddler to see > what is transcluded and what is not. > > I have looked around in the TW5 help and I only saw reference to the > inline CSS style above. > > Let's say I have "tiddler1" which will be transcluded into "tiddler2". So > in "tiddler2" I would write: > {{tiddler1}} > > Is there a CSS class I can use to automatically color all transcluded text > without having to manually style every time I do a transclusion? Or is > there another way to do this? > > If we don't have a CSS class for transcluded text can we get one in a > future release? > > Thank you! > > -- 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/b91eb1cd-7c26-4cb4-9451-792f7399d75d%40googlegroups.com.