This puzzles me: <$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
This means you're invoking the actual contents of the current tiddler (in a tab) as a macro. It appears to be the fallback if the caption field isn't available. I'm wondering why it isn't just: <$text text=<<currentTab>>/> If it works .... ok I guess. Be sure to test your code without a caption field to see what happens. On Tuesday, February 4, 2020 at 3:42:58 AM UTC-8, A Gloom wrote: > > > I assume this is how to do a basic buttonTemplate for the tabs macro -- I > looked at the tab content currentTiddler template shown on the tiddlywiki > documentation and postulated that same approach would work for a basic > buttonTemplate. (The example showed wrapping a transclusion in the macro > in a tiddler widget.) > > the buttonTemplate code: > > > @@.ragsfiledisplay > <$transclude tiddler=<<currentTab>> field="caption"> > <$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/> > </$transclude> > @@ > > > > I didn't need a full blown custom template... > I just duplicated the macro's transclusion that was nested in the macro's > buttonTemplate' transclusion *(hard to tell if the nested translusion was a > fall-back or not), so I can wrap it in a css class for small caps > font-variant-- adding the class to the tabs macro class parameter is not > desired because I don't want it also being applied to the tabs' contents. > > It works as far as I can tell... > > I asssume this kind of basic template would allow me to create templates > to change the caption transclusion to any field desired-- without cloning > and hacking the tabs macro. > -- 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/a624f5ec-b715-486c-b787-2cd37ff093b1%40googlegroups.com.

