Hi everyone, happy Thanksgiving day to those who celebrate it!
I have a macro for a slider using the details element:
<<blurb c:"" t:"">>
C is the caption that the user edits freely, the details summary. T is the tiddler that gets revealed in a slider (the non-summary part of the details).
I would like an editor toolbar button that inserts the macro above but where the t parameter contains the present time, down to the second. The button would paste something like this:
<<blurb c:"" t:“2021-11-25 3:14:56”>>
This would save me a step. I would paste the macro, fill out the caption, save/close, and click the edit button at the end of the macro to open and edit the tiddler that will contain the text hidden by the slider.
Thanks to anyone who is willing to help me work this out. Blessings today.
Now that I see what stobot did, I get what you were asking for.
Cognitive hiccups re attention-regulation disability: when I see “to insert a macro”, a “macro” in my head is the definition of a macro (i.e. define-end), and I could not figure out how a button that inserts the definition of a macro made any sense with everything else in your post. Now I get it: you want to insert a macro “reference” (some might say “call”, but I avoid that because I often fall back in the trap of thinking that a macro is a function).
Nothing at all wrong with what you wrote. All of that to say that if you wonder sometimes what in the world I’m thinking, it is probably way way out there. With a very slight possibility of being entertaining. High probability of being wordy …