Hi

Combine the two variables with a macro:

\define sentence(data,language) $data$##$language$

Then reference this value like this: <<sentence dataone zh>>

regards


On Friday, 4 December 2015 18:30:19 UTC+2, ParisWiki wrote:
>
> Hello,
>
> I wish to use a variable to extract a sentence from a data tiddler.
>
> The user chooses his/her own language and from there he/she should obtain 
> a guide for a service in the right language.
>
> Of course with the choice of language (choice ={{Language!!choix}} it easy 
> to keep the same language in  all the tiddlers whose tag matches with the 
> field "choix" in the tiddler "Language".
>
> It is also easy to implement situations where various sentences are 
> extracted from a data tiddler with the formula {{Data1r##zh}} in the case 
> where the language is chinese (zh).
>
> But in that case, the language is de facto hard coded.
>
> I wish to simplify the number of patterns by using a variable for 
> extracting data from my data tiddler(s).  
>
>  I have built an exemple at http://jcg.tddlyspot.com.
>
> Either I don't correctly manipulate the syntax of variables in TiddlyWiki 
> (which is more than probable), or I am asking to much in willing extracts 
> from a data tiddler thru a variable !
>
> In other words, I would appreciate some guidance ...
>
> Thank you in advance
> JCG
>
>

-- 
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/e24526f9-885a-4f49-b2cc-c2ebdf377cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to