Thank you for the reply.
I have succeeded in resolving most issues related to my inappropriate use
of the code snippet $(variable)$, which caused failures after the the
upgrade, but the there remains a couple of puzzles:
First, the following code continues to work: <<tag $(variable)$ >>. Is
this something that is harmless, or could continued use of this
configuration haunt me by failing after some future upgrade, and should I
be weeding use of this configuration out of my present code?
Second, I'm having trouble finding a replacement for the use of
$(variable)$ within a table of contents. I have tried defining it in a
macro; for example:
/define macroName(somevar)
<<toc-selectable-expandable $(somevar)$ >>
/end
<div>
<<macroName>>
</div>
This approach works so long as the tag being passed has no spaces, but it
fails when a space is present within the tag. I have tried all of the
tricks that I know that usually work when passing spaces within a
variable. For example, I have attempted to define the variable within an
accompanying macro. I have also tried defining the macrocall widget with a
secondary macro. So far, I have not found a solution. Does anyone have a
suggestion? How do you define a variable for use in the
<<toc-selectable-expandable tag="variable">> when the variable is defined
with a value that contains a space: for example, "this tag?"
Merv
On Wednesday, August 14, 2019 at 9:27:27 AM UTC-6, Jeremy Ruston wrote:
>
> Hi Michael
>
> However, in my case, I was using it in a transclusion template like
> {{$(variable)$||some_custom_tag_pill_tiddler}}. In looking at the
> instructions for the full TranscludeWidget, I can do <$transclude
> tiddler=<<variable>> field="title"/> but is there a way to specify the
> template? I was able to workaround things by making a macro like you
> indicated containing the above {{||}} transclusion template but am I
> missing something in that the full transcludeWidget is not able to use a
> template tiddler? I did try adding a "template=" section but it didn't work.
>
>
> The tiddler referenced by the transclude widget is the one that is used as
> a template. If you want to set a different currentTiddler for it to display
> then you can use the <$tiddler> widget wrapped around the transclude
> widget. (The {{tiddler|template]} syntax is a shortcut for a tiddler widget
> targeting the tiddler wrapped around a transclude widget targeting the
> template).
>
> Best wishes
>
> Jeremy
>
--
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/fd006ea6-800c-4cfa-ab7f-d0bfd43d1e0b%40googlegroups.com.