Tobias, thank you!

Setvars is really, really cool!

That's really interesting how vars are called *already in* the setting of 
the other vars!

<:-)


On Wednesday, December 30, 2015 at 2:06:30 PM UTC+1, Tobias Beer wrote:
>
> Hi Mat,
>
> You can easily achieve that using tobibeer/setvars 
> <http://tobibeer.github.io/tw5-plugins/#setvars>:
>
> <$setvars url="\http://tiddlywiki.com/#\ current" _current=<
> <currentTiddler>>>
> <<url>>
> </$setvars>
>
> However, this requires for the tiddler title to not have spaces in order 
> for the link to work with a TiddlyWiki.
>
> While not officially released, here's a little macro module called *x* 
> that does what you want,
> by default pointing to http://tiddlywiki.com:
>
> $:/.tb/modules/macros/x.js 
> <http://tobibeer.github.io/tw5-plugins/#%24%3A%2F.tb%2Fmodules%2Fmacros%2Fx.js>
>  (*code:* tobibeer/tw5-defaults/.../x.js 
> <https://github.com/tobibeer/tw5-defaults/blob/master/editions/defaults/tiddlers/system/modules/macros/x.js>
> )
>
> *syntax:*
>
>    - <<x title>>
>    - <<x "tiddler title">>
>    - <<x "tiddler title" "pretty title">>
>
> If you want it to point to another domain, simply create a global macro 
> called *x-url* and have it return your *base-url*, e.g.:
>
> title: $:/config/x-url
> tags: $:/tags/Macro
>
> \define x-url()
> http://tobibeer.github.io/tw5-plugins
> \end
>
> Alternatively, you can, of course overwrite the *x-url* for each tiddler 
> individually by declaring it at the start:
>
> \define x-url() http://tobibeer.github.io/tw5-plugins
>
> Best wishes,
>
> Tobias.
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/8022679a-5b69-4e6a-ae89-182a786374e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to