On Friday, September 4, 2020 at 12:58:55 PM UTC-7, [email protected] wrote: > > I have a piece of code that uses details macro from the Shiraz plugin. > This is the piece of code: > << details sum: "NameOfCurrentTiddlerHere" "BodyTextHere" class: > "alert-primary" >> > It all works fine, but how do I make the current tiddler title appear > *automatically > *with: "NameOfCurrentTiddlerHere" as a *link*? > > In the place "Body text here" I want a list of links. For this I have the > following code: > << list-links filter: "[tag <currentTiddler>] + [tag [NameOfTheTag]]" >> > > The code is correct but if I paste it between the other code it is not > working. How do I do this? >
As you have discovered, you can't use macro syntax as parameter values *inside another macro*. To get around this, you should use the <$macrocall> widget with *named* parameters, like this: <$macrocall $name="details" sum=<<currentTiddler>> src="""<<list-links filter:"[tag<currentTiddler>] + [tag[NameOfTheTag]]">>""" class="alert-primary"/> Note that the src parameter value is surrounded by tripled quotes. This is needed to allow you to use the regular quote character within the parameter value. Alternatively, if you define a macro to specify the parameter value, you could write it like this: \define detailsSrc() <<list-links filter: "[tag<currentTiddler>] + [tag[NameOfTheTag]]">> <$macrocall $name="details" sum=<<currentTiddler>> src=<<detailsSrc>> class= "alert-primary" /> enjoy, -e -- 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/f9a57d0f-46ae-4f32-b3fe-e68ee3ac7a82o%40googlegroups.com.

