On Wednesday, August 23, 2017 at 4:46:42 AM UTC-7, Uwe wrote:
>
> I want to get the school-week (UW) from the *current* calendar week (KW). 
> In my attachment, the application/x-tiddler-dictionary tiddler [[KWUW]] 
> holds the corresponding fields.
> <<now WW>> works. I get the current calendar week.
> {{KWUW!!35}} works too, it gives me the current school-week, but I have to 
> give the calendar week *manually*.
> Unfortunately, {{KWUW!!<<now WW>>}} doesn't work. ;-(
>

As you have discovered, you cannot simply combine TW syntax "inline" like 
that.

To assemble valid TW syntax by substituting values from pieces, you use a 
*macro*, passing in the desired value as a parameter, like this:
\define getUW(kw) {{KWUW!!$kw$}}
and then use it like this:
<$macrocall $name="getUW" kw=<<now WW>> />

or, alternatively, you can set a variable to the desired value, and 
reference that variable within the macro, like this:
\define getUW() {{KWUW!!$(kw)$}}
and then use it like this:
<$vars kw=<<now WW>>> <<geUW>> </$vars>

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/9cd00bc9-e8e7-4f47-8313-6d9182abd543%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to