> Hi all
> I have a tiddler with a value in the text :
> [[valueTid]]
> 26
> What is the syntax to write "26" as a wiki link to [[valueTid]] ?
> [[<<tiddler valueTid>>|valueTid]]
> Does not work...

What you want to do is to retrieve the 'text' content from the
tiddler, and then use it as the display text for a link to that
tiddler.  However, you can't use the <<tiddler>> macro to retrieve the
value, because TW macros don't "return text" that is then processed...
rather, they directly render their own output.  Thus, you can't embed
macros calls within other TW syntax.

Unfortunately, there is no direct syntax in TW that allows you to
fetch and embed a tiddler field value (e.g. the 'text' field) within
the TW link syntax.  Fortunately, I've written a plugin that let's you
do exactly that (and more):
   http://www.TiddlyTools.com/#WikifyPlugin
   http://www.TiddlyTools.com/#WikifyPluginInfo

Using the <<wikify>> macro, you can then write:
   <<wikify "[[%0|TiddlerName]]" text@TiddlerName>>

The first param, "[[%0|TiddlerName]]" is the 'format' for the output,
where %0 marks the 'insertion point' for embedding the value retrieved
from the tiddler.  The second param, "text@TiddlerName" is the plugin-
defined reference for the desired tiddler field content (i.e.,
fieldname@TiddlerName).

The macro gets the value from the tiddler and then constructs the
indicated TW syntax (in this case, a "pretty link").  The result is
then automatically rendered, producing the desired link output.
Q.E.D.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to