Hi

This technique creates the TextReference as a string -- this reference 
still needs to be used to become wikified.

There's another method which may better suit your needs. The $transclude 
widget accepts a 'tiddler' attribute and an 'index' attribute:

<$transclude tiddler={{!!mydata}} index={{MySettings!!language}} 
mode="block"/>

-- may be used with a referenced variables, rather than a referenced fields:

<$transclude tiddler=<<mydata>> index=<<language>> mode="block"/>

regards


On Friday, 4 December 2015 21:57:18 UTC+2, ParisWiki wrote:
>
> Hi Matabele,
>
> I am still missing something.
> The first solution, as it is, gives nothing useful to me.
>
> The second proposal looks much more promising and gives {{Data1##fr}} if 
> the language chosen is French or {{Data1##zh}} for Chinese, after adding 
> the curly braces {{<sentence {{!!target}} {{!!language}}>>}}.
>
> But it does not "resolve" the formula and certainly, as it is, does not 
> extract data from my data tiddler Data1.
>
> Did you try it and obtain the correct extraction? 
> What do I miss again ?
>
> regards
>
> Le vendredi 4 décembre 2015 18:18:46 UTC+1, Matabele a écrit :
>>
>> Hi
>>
>> Combine the two variables with a macro:
>>
>> \define sentence(data,language) $data$##$language$
>>
>> Then reference this value like this: <<sentence dataone zh>>
>>
>> or for variables (stored in a field), like this: <<sentence {{!!target}} 
>> {{!!language}}>>
>>
>> regards
>>
>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/abd1fabd-b528-46ba-8206-e707124a88f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to