\define extlink(text,path) [ext[$text$|$path$]]<$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} />--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/9PmTbR0OQG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/15ced3aa-0f07-4ffe-ab91-69e522bfa341%40googlegroups.com.
Then, use the $macrocall widget to invoke your macro using the values stored in the two separate fields, like this:<$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} />
title: $://extlink
\define extlink(text,path) [ext[$text$|$path$]]
<$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} />
{{Jeremy||$://extlink}}{{||$://extlink}}--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/9PmTbR0OQG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3a8e4625-e04c-4448-bee7-27a10aabe0a1%40googlegroups.com.
title: $://extlink
\define extlink(text,path) [ext[$text$|$path$]]
<$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} />{{Jeremy||$://extlink}}Hi David,Let me decipher this template for you once more...
title: $://extlink
\define extlink(text,path) [ext[$text$|$path$]]
<$macrocall $name="extlink" title={{!!title}} path={{!!relativepath}} />
Means: this will be a tiddler called $://extlink which contains the last two lines.Then, in any other tiddler, you can do:{{Jeremy||$://extlink}}This will take the tiddler "Jeremy" and based on its title and relativepath field will create this extlink for you.However, if you wanted to give this link a custom text, then this will not work for you, as you cannot pass parameters to a transclusion like you can pass them to a macro. At that point, you'd want to use a(nother) macro.Tobias.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/9PmTbR0OQG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f6120c1e-70e1-479c-8774-5849523af443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think you meant:
<$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} />
^^^^^
Right? (text instead of title, because the Macro parameter is named "text")