- Open https://tiddlywiki.com
- Create a tiddler with below contents and tag it with
$:/tags/Macro
\define myfun(src) <$macrocall $name="__src__" />
- Save
- In another tiddler do below experiments
<<myfun "Hello">>
It produces:
Hello
Now
<<myfun src:"""
\define magic() I am a beautiful angel!
Hey, <<magic>>
""" >>
It produces:
Hey, I am a beautiful angel!
What magic is behid macrocall with "__src__"
? If you use \define myfun(src) <$macrocall $name=<<__src__>> />
no magic you will see!