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/037cecff-d0b7-49f5-ba66-7f56a74e23a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.