On Friday, December 28, 2018 at 6:20:19 AM UTC-8, arnaud MESLE wrote:
>
> I'm a newbie with TW and i'm trying to find a way to transclude a value of
> a X-tiddler-dictionary by using a variable, but nothing works so i would
> like to know if it is possible from your opinion ?
>
> My target is to set "step1" in a variable and to try to find a syntax for
> transclude the value of the "step1_summary" item.
>
> test 2:
> <$set name="var1" value="{{ressource##step1_summary}}">
> <<var1>>
>
Greeting Arnaud... welcome to TiddlyWiki!...
In TW5, quotes don't just surround the parameter values; they indicate the
kind of parameter and how it is to be handled.
* a literal text parameter value is enclosed in double quotes:
value="foobar"
* a reference to a tiddler field or data dictionary index is enclosed in
doubled curly braces
value={{tiddlername!!fieldname}}
value={{tiddlername##indexname}}
(note: if the 'tiddlername' portion of the reference is omitted, the
reference is to a field/index in the currentTiddler)
* a reference to a variable is enclosed in doubled angle brackets
value=<<variablename>>
Thus, your "test 2" was very close... just remove the double-quotes around
the value parameter, like this:
<$set name="var1" value={{ressource##step1_summary}}>
<<var1>>
</$set>
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals
--
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 [email protected].
To post to this group, send email to [email protected].
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/92c07e47-19b0-4f6d-8f86-09c2eaee4408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.