Linking to a tiddler with spaces with an alternate link

211 views
Skip to first unread message

AlanBCohen

unread,
Jun 26, 2009, 6:47:00 AM6/26/09
to TiddlyWiki
Let's say I have a tiddler [[Smith, John]]. in a separate tiddler, I
have a reference 'Johnny Smith'. I want to link them but the context
really doesn't allow using the 'last , first' format. [[Johny Smith|
[[Smith, John]]]] doesn't seem to work.
(background; I have close to three hundred tiddlers using the 'last ,
first' format with the employee tag based on imported information.)
One idea would be to create [[Johnny Smith]] as a tiddler with the
'Macro TiddlyName:Smith, John' (without the employee tag to avoid
double listing him).
Is there another work-around I've missed?

M)

unread,
Jun 26, 2009, 4:48:57 PM6/26/09
to TiddlyWiki
[[Johny Smith|Smith, John]] should work.

Another option is to write in [[Johny Smith]] <<tiddler [[Smith, John]]
>>. This will transclude the [[Smith, John]] content into [[Johny
Smith]]. You'll find TiddlerWithEditPlugin useful.

http://tw.lewcid.org/#TiddlerWithEditPlugin

You might want to try the RedirectMacro -- what you do is add create
the redirects in a [[redirects]] tiddler and then add <<tiddler
redirects>> to the MainMenu. The result is what ever you label as a
redirect to [[Smith, John]] will automatically become a link to that
tiddler. So, you might have John Smith, Johnny Smith etc. all
redirect throughout your TW without having to hardcode them yourself.

http://checkettsweb.com/styles/#RedirectMacro

Alternatively, you can use the TiddlerAliasPlugin. This one you do
have to hard code the options where they exist, thus this is not as
ideal.

http://tiddlywiki.abego-software.de/#TiddlerAliasPlugin

There likely is another option using http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin.
This one is beyond me.

Regarding the RedirectMacro, TiddlerAlias plugin and the transclusion
option, the "references" are not as you might expect. Personally, I'm
toying with the transclusion and RedirectMacro options and have yet to
decide which I prefer.

M)

Ken Girard

unread,
Jun 26, 2009, 5:15:11 PM6/26/09
to TiddlyWiki
The correct format is:
[[Johny Smith|Smith, John]]

Wanted to make sure you didn't think that it was a mis-typing on M)'s
part.

Ken Girard
Reply all
Reply to author
Forward
0 new messages