The normal syntax would be :
{{myStyle{<<tiddler [[some tiddler name##heading name]]>>}}}
But I want to create an alias. I know I could create a macro, but an
alias would be quicker/easier if I want to do this in the future.
I've tried this:
<<alias myStyle "{{myStyle{<<tiddler [[%0]]>>}}}">>
But this doesn't work. The "}}}" is displayed, and calling the alias
doesn't work.
Is there some way to escape these characters properly, or should I
just write a one-line macro?
--
Bobman
Thanks for the syntax! Now I don't get the artifacts on screen for the
tiddler in which I define the alias (I use MainMenu for alias
definitions).
However, it still isn't working.
My style displays a floating box on the right, 50% the width of the
tiddler. If I use this:
{{myStyle{<<tiddler [[SomeTiddler]]>>}}}
Then the tiddler macro is called and the contents appear in the floating box.
If I use the alias as you gave it to me, I get the floating box (only
one line tall) with no content.
If I redefine the alias to not call the tiddler macro but insert the
text directly, all I get is the passed text in the box:
<<alias myStyleNoTiddler {{"{{myStyle{%0\}\}\}"}}>>
So it appears there is some odd interaction with the tiddler macro.
Incidentally, I tried to write my own macro that functions the same as
this alias, but I get the same results; floating box with no content,
as if the tiddler macro is never called.
If we can't get some form of macro working on this, I can continue to
insert the CSS call myself, but I'd rather abstract it behind some
sort of macro (alias or otherwise).
--
Bobman
When I passed the name of my other tiddler as an argument to the
alias, AutoWeavePlugin was inserting square brackets around it, which
was resulting in non-functional arguments. If I insert the square
brackets myself, AutoWeave does not come into play, and I'm good to
go.
I wonder how hard it would be to update AutoWeavePlugin to ignore text
within macro calls?
--
Bobman