Hi,
 If you add the macro by Mark and the Find macro then you can extract part 
of tiddler text not only tiddler fields.
You can also use the random macro by Tobias Beer.

Good luck
Mohammad


On Friday, June 7, 2019 at 2:05:21 AM UTC+4:30, Mark S. wrote:
>
> Rather than splitting out the line, put it in its own field. Then inside 
> your tiddler, you can reference it like:
>
> {{!!most-important-things}}
>
> It's usually better to work the way TW does, than to try to do things the 
> way you would in some other technology.
>
> To do random numbers you will either need a math library or write your own 
> in a javascript macro.
>
> Or, make your own pseudo-random dictionary:
>
> 0: 2 9 1 3
> 1: 3 5 2 7
> ...
> 9: 8 7 1 2
>
> Then select which set you're using based on the time stamp, like:
>
> <$set name="lev1" filter="[<now>splitbefore[:]]">
> <$set name="lev1b" filter="[<now>removeprefix<lev1>]">
> <$set name="lev2" filter="[enlist<lev1b>splitbefore[]]">
> <$set name="lev2b" filter="[enlist<lev1b>removeprefix<lev2>]">
> <$set name="lev3" filter="[enlist<lev2b>splitbefore[]]">
> <<lev3>>
> </$set></$set></$set></$set></$set>
>
> (that gives a number between 0 and 9 depending on the minutes in the hour).
>
> Overall, it would be a challenging task. I'm not sure I've seen a complete 
> quiz project, though there's some partially-started.
>
>
> On Thursday, June 6, 2019 at 6:41:32 AM UTC-7, Chems wrote:
>>
>> Okay this is hard, especially for me as a new Tiddlywikkier (or how do 
>> you call yourself ?), so bear with me.
>>
>> I have approx. 30 tiddlers under a specific tag. 
>> My tiddlers are build as followed:
>>      Title: generic title
>>      Text of Tittler: First Line "Most important information" (3-10 
>> words).
>>                             then some more text, pictrues etc etc.
>>
>> Now I want to create a new Tiddler, with a complex function.
>> I want this tiddler to show randomly the title of a random tiddler,
>> then four  "Most important information" from 3 different tiddlers and the 
>> "Most important information" of the tiddler which title was choosen. These 
>> 4 Informations should appear in a random order.
>>
>> The user should now be able to click on the one "Most important 
>> information", which he thinks is the one from the title. 
>> The correct answer will be displayed and the next question will start 
>> like before.
>>
>> As I said, I am pretty new to Tiddlywiki and to programming at all, but 
>> am kinda motivated.
>> Has anybody a idea how to takle this task?
>> Does anybody know a similar question with solution?
>> Which tutorials would you recommend for me to study, so that I could be 
>> able to handle this?
>>
>> For me, this whole tasks sounds pretty though and I am not even sure if 
>> it is in the scope of tiddlywiki.
>>
>> I am greateful for every help!
>>
>> Thank you in advanced!
>>
>

-- 
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/a1fdf264-c96a-421d-b0e6-b4a0d6c388c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to