Link shortcuts

7 views
Skip to first unread message

Harshad

unread,
Feb 10, 2008, 9:49:19 AM2/10/08
to TiddlyWiki
Hi,
I am new to TW. I need to make a lot of links to standard locations
such as bugzilla entries. It would be cool if I could just say
[bug 100]

and get it converted to
http://bugzilla.mysite.com/bug_id=100

or something like that. Is there a plugin which can do that?

Thanks,
Harshad

Eric Shulman

unread,
Feb 10, 2008, 9:54:20 AM2/10/08
to TiddlyWiki
> I am new to TW. I need to make a lot of links to standard locations
> such as bugzilla entries. It would be cool if I could just say
> [bug 100]
>
> and get it converted tohttp://bugzilla.mysite.com/bug_id=100
>
> or something like that. Is there a plugin which can do that?

http://www.TiddlyTools.com/#AliasPlugin

Usage:

To define the alias, put the following in any tiddler that is
displayed at startup (i.e., [[MainMenu]])
<<alias bug "http://bugzilla.mysite.com/bug_id=%0">>

Then, to USE the alias, simply write:
<<bug 100>>

enjoy
-e
Eric Shulman
TiddlyTools / ELS Design Studios


FND

unread,
Feb 10, 2008, 10:35:53 AM2/10/08
to Tiddl...@googlegroups.com
> http://www.TiddlyTools.com/#AliasPlugin

Just for the record, you could also use transclusion*.

For example, you might have a tiddler [[TicketTemplate]] with the
following contents:
[[ticket $1|http://trac.tiddlywiki.org/ticket/$1]]
Then you could use the following macro call:
<<tiddler [[TicketTemplate]] with:"100">>

Of course this is much more verbose than using Eric's AliasPlugin, so
it's probably not a good alternative.


-- F.


* http://www.tiddlywiki.org/wiki/Transclusion

Harshad

unread,
Feb 11, 2008, 12:45:13 AM2/11/08
to TiddlyWiki
Thanks for the replies.

The Alias Plugin seems more suitable for my needs.
Reply all
Reply to author
Forward
0 new messages