Maybe try:
\define mymacro2(web id) [ext[Linktext|$web$$id$]]
\define mymacro() <$macrocall $name="mymacro2"
web="https://mydomain.com/files/" id={{!!webid}}/>
<<mymacro>>
-- Mark
On Friday, January 5, 2018 at 9:42:15 PM UTC-8, tobaisch wrote:
>
> I would like to make a macro for a link to a website on every tiddler.
> Onyl the ID on the end of the website is changing.
> e.g.: www.verylongdomain.com/id1234567545
> The prefix of the website is very long and should therefore be fix
> integrated into the macro.
> The variable and authoritative ID at the bottom of the page is in the
> field: "webid".
> I would now like to write with the help of the macro only <<mymacro>> in
> the Tiddler and get a link in the form *Linktext*
> as output.
> Where is my mistake?
>
> \define mymacro() [ext[Linktext[$(web)$$(id)$]]
> <$vars web="www.verylongdomain.com/" id={{!!webid}}>
> </$vars>
> \end
>
> Thanks for your help
> Regards
> Tob
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/7d68a5b8-bf7e-4e6b-8658-82adf8e75e36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.