Hi Mark, thanks for reply. I am not sure what would be the tiddler_variable_in_the_loop
I tried with {{!!title}} which gives the title name but, without its content. Are there other way to get the tiddler_variable. Best, -Rahul On Saturday, May 23, 2020 at 9:41:41 AM UTC-4, Mark S. wrote: > > The wikitext form of invoking the macro is limited. But you can use the > macrocall widget instead: > > <$macrocall $name=details > sum=<<tiddler_variable_in_the_loop>> src={{{ > [<tiddler_variable_in_the_loop>get[text]]}}} /> > > This is probably still not exactly what you want (the src will lose its > original formatting). The next step would be to move the macrocall inside > its own macro where substitution variables can be used. > > On Friday, May 22, 2020 at 10:36:28 PM UTC-7, Rahul Kashyap wrote: >> >> Hello everyone, >> >> My problem is related. I couldn't understand your instruction >> completely. Could you please elaborate more? I'll describe my problem in >> more details below. >> Any help would be appreciated. >> >> I want to use a macro for all the tiddlers satisfying a certain filter >> esp. (demo/details/details-macro ( >> https://kookma.github.io/TW-Shiraz/#Install) macro of Shiraz. >> >> I know that {{!!title}} or <$view field='title'/> prints the title of >> the tiddlers and I can use <$transclude mode="block"/> to transclude >> the content as well but, I couldn't transclude them inside the macro. >> I also tried a template unsuccessfully. >> >> <$list filter="[tag[my_tag]]"> >> >> >> <<details sum:"[[tiddler_variable_in_the_loop]]" src: >> "{{tiddler_variable_in_the_loop}}">> // desired output with visible >> link and hidden translusion >> >> >> <<details sum:"{{!!title}}" src:<$transclude mode="block"/> >> // >> displays the title of the tiddler without link; do not transclude. >> <<currentTiddler>>{{||$:/rkashyap/template/detail}} // similar to above >> >> >> <$transclude mode="block"/> // transludes the whole content without >> hiding it >> </$list> >> >> >> The code below achieves the task if the title of the tiddlers are not >> CamelCase in which case it opens the tiddler which I don't want. >> <$appear show= {{!!title}} > >> <$transclude mode="block"/> >> </$appear> >> >> >> Thanks, >> -Rahul >> >> On Thursday, May 21, 2020 at 10:26:34 AM UTC-4, Mark S. wrote: >>> >>> You might be able to do it with the wikify. This works with the "now" >>> macro: >>> >>> <$wikify text="""<<now "YYYY-0MM-0DD">>""" name="datetid"> >>> <$transclude tiddler=<<datetid>>/> >>> </$wikify> >>> >>> But since you've already made a JS macro, maybe you could just make a >>> version of it that returns the contents of the targeted tiddler. >>> >>> On Thursday, May 21, 2020 at 1:37:06 AM UTC-7, Tony K wrote: >>>> >>>> relevant portion of the code below >>>> >>>> >>>> \define dn-ts(timestamp) >>>> """<$macrocall $name="jstiddler" timestamp=$timestamp$ format="YYYY-0MM >>>> -0DD" />""" >>>> \end >>>> >>>> >>>> <<dn-ts 20200521065246330>> >>>> >>>> >>>> this works and displays the time stamp is the required format i.e >>>> 2020-05-21 >>>> >>>> >>>> however what I need is to transclude the tiddler with title 2020-05-21 >>>> and that i can't achieve >>>> >>>> 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/fe65e51a-de00-4e9f-b8b9-26e50fca8c09%40googlegroups.com.