customizable interwiki links

65 views
Skip to first unread message

Christophe Lebel

unread,
Mar 21, 2007, 9:54:38 AM3/21/07
to TiddlyWiki
Hi , i m wonder how it is possible to define (or find !) a plugin or
a macro able to add "customizable interwiki links"feature to the
fabulous tiddly wiki a very convenient function that is largely
available of other wikis(like dokuwiki or twiki) .
In a nutshell, such feature (also named wiki urn) consists on
resolving the special wiki word into parametrized uri :
example : [[wp>Wiki]] => [[http://en.wikipedia.org/wiki/Wiki]]
For further details, have a look to http://wiki.splitbrain.org/wiki:interwiki

does anybody have an idea ?

Daniel Baird

unread,
Mar 21, 2007, 7:50:42 PM3/21/07
to Tiddl...@googlegroups.com
here's something a bit similar:
http://bob.mcelrath.org/tiddlyjsmath-2.0.3.html#%5B%5BPlugin%3A%20arXiv%20Links%5D%5D

With a smidge of RegexFu, you could adapt that to match other strings.

;Daniel


--
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog ::
Things That Suck)

Eric Shulman

unread,
Mar 21, 2007, 11:00:25 PM3/21/07
to TiddlyWiki
> Hi , i m wonder how it is possible to define (or find !) a plugin or
> a macro able to add "customizable interwiki links"feature to the
> fabulous tiddly wiki a very convenient function that is largely
> available of other wikis(like dokuwiki or twiki) .
> In a nutshell, such feature (also named wiki urn) consists on
> resolving the special wiki word into parametrized uri :
> example : [[wp>Wiki]] => [[http://en.wikipedia.org/wiki/Wiki]]

While not exactly the same as the 'interwiki' syntax, give this a try:
http://www.TiddlyTools.com/#AliasPlugin

It let's you quickly create text substitution "alias" macros on-the-
fly. I've just updated it (v 1.1.0) so the aliases can now
incorporate parameterized substitutions using TW-standard %0...%9
replacement markers

Using this updated feature, you can define a <<wikipedia>> macro this
way:

<<alias wikipedia "[[Wikipedia:%0|http://www.wikipedia.com/wiki/
%0]]">>

which is then used like this:

<<wikipedia TiddlyWiki>>

and renders this link source:

[[Wikipedia:TiddlyWiki|http://www.wikipedia.com/wiki/TiddlyWiki]]

which looks like this in your tiddler display:

Wikipedia:TiddlyWiki

and, when clicked, takes you to the TiddlyWiki page on Wikipedia.
QED.

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Reply all
Reply to author
Forward
0 new messages