TEST your tiddlywiki knowledge

246 views
Skip to first unread message

Luis Gonzalez

unread,
Feb 27, 2020, 8:20:45 AM2/27/20
to tiddl...@googlegroups.com
Here you have the next release of The-Book.


I have done this little test with the best intention and humor. Use it to check your knowledge about Tiddlywiki.


TEST

1. You have a Tiddlywiki to store information about your favorite programming language. It is full of CamelCase words and tiddliwiki converts them to links. This is very annoying, because those links do not exist. What is the easiest way to solve the problem?
        a) You have to begin each CamelCase word with a ~ .
        b) You can use the “\pragma” sentence to deactivate all wikitext format.
        c) You can use the “\pragma except wikilinik” sentence to deactivate the CamelCase detection.
        d) You can use the “\rules excect wikilink” sentence to deactivate the CamelCase detection.



2. Your very rich significant other has passed away. You find her(his) testament in a Tiddlywiki file. Unfortunately, her ex-boyfriend(his ex-girlfriend) has hidden all controls and buttons to manage the wiki, so you can't read it. What can you do?
        a) There is no problem. You can use the DragAndDrop mechanism to import all tiddlers to other file.
        b) You can't read the testament. You have lost the heritage.
        c) You have to hire a group of hackers to analyze the html file.
        d) You must call Jeremy. Only he has the resources to recover the information.



3. You are using Tiddlywiki in a html file opened with Firefox without complements or other applications loaded. You have spent two hours adding information to your tiddlywiki. Tired, you close the browser without reading a message that appeared on the screen. The next time you open your tiddliwiki file it is empty. What can you do?
        a) There is no problem. You can use the DragAndDrop mechanism to import all tiddlers to other file.
        b) You have lost all the information.
        c) You have to hire a group of hackers to analyze the html file.
        d) You must call Jeremy. Only he has the resources to recover the information.



4. You need a list of all your tags (sorted alphabetically) followed by the number of tiddlers tagged with it. Write a macro.



5.
You have a todo tiddlywiki. You have many people, tiddlers tagged with “person” whose title is his name. And you have the tasks, tiddlers tagged with “task”. Each time you assign a task to a person you tag the task with the name of the person. How do you find all tasks not assigned to anyone?


       
6. You have a macro to show the title and content of a tiddler in a little square:
\define content(tidd:"")
<div class="squared">
<h2>
<$link to=<<tidd>>>
<<tidd>>
</$link>
</h2>
<small>
<$transclude tiddler=<<tidd>> mode="block"/>
</small>
</div>
<br/>
\end

but it does not produce any output. What happens?
        a) You have to add the default value for the tidd attribute.
        b) You have to use $tidd$ as a placeholder for your attribute.
        c) You have to use <<__tidd__>> as a placeholder for your attribute.
        d) There is no “block” mode for transclusions.



7. You manage your business with some tiddlywikis. One of them is to control staff. You add all people tagged with his position in the company. For all the managers you want to show in its tiddlers the staff that depends on him, the resources assigned to it and some more fields, in addition to the information of its tiddler. What is the best?
        a) Write the macro “manager” and add <<manager>> to each manager at the end of the tiddler content
        b) Use a Conditional View Template for the “manager” tag with the information you need to include.
        c) Use the css { display:none; } for all tiddlers not tagged whit the “manager” tag.
        d) You have to write all this information manually.



8. You want to add an icon in few tiddlers. You want the icon to appears next to the title. What's the easy?
        a) Use a Conditional View Template and add the icon in this template.
        b) This is a feature already incorporated in tw. Add the icon you want in the icon field of the tiddler.
        c) Modify the View Template to show the icon.
        d) Write a macro with the icon tiddler as a parameter and add this macro to the tiddler.



9. Before saving, you deleted the tiddler “$:/core/modules/startup.js” of a tiddlywiki file.
        a) ¡No problem!. It is a shadow tiddler and Tiddlywiki will restore it again.
        b) You have crashed tiddlywiki. The file will never load again.
        c) Tiddlywiki will load completely empty.
        d) You have removed all tiddlywiki functionality.



10. Before saving, you deleted the tiddler “$:/core” of a tiddlywiki file.
        a) ¡No problem!. It is a shadow tiddler and Tiddlywiki will restore it again.
        b) You have crashed tiddlywiki. The file will never load again.
        c) Tiddlywiki will load completely empty.
        d) You have removed all tiddlywiki functionality.




The_Book.pdf

Mohammad

unread,
Feb 27, 2020, 11:59:42 AM2/27/20
to TiddlyWiki
Hi Luis,
 Many thanks for all your efforts.

I learn from these tests!

Thank you and hopefully people respond to it and you receive feedback on The Book!


A minor comment: It is good to post the change log on recent release!
I also working on the second part of making plugin and hopefully send it to you today or tommorrow!

--Mohammad

Mohammad

unread,
Feb 27, 2020, 12:07:35 PM2/27/20
to TiddlyWiki
More Test


11. Which is correct which is incorrect! (scope of variable)
      a)
\define m2()
The value of n in m2 <$text text=<<__n__>> />
\end

\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end


<<m1 10>>

b)
\define m2()
The value of n in m2 <$text text="""$n$""" />
\end

\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end


<<m1 10>>

c)
\define m2()
The value of n in m2 <$text text="""$(n)$""" />
\end

\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end


<<m1 10>>



d)
\define m2(n)
The value of n in m2 <$text text="""$n$""" />
\end

\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end


<<m1 10>>






On Thursday, February 27, 2020 at 4:50:45 PM UTC+3:30, Luis Gonzalez wrote:

Thomas Elmiger

unread,
Feb 27, 2020, 3:46:35 PM2/27/20
to TiddlyWiki
Interesting questions, Luis.

I miss a very simple solution for 1) though:

– switch off CamelCase linking in $:/ControlPanel > Settings

All the best,
Thomas

TonyM

unread,
Feb 27, 2020, 5:22:49 PM2/27/20
to TiddlyWiki
Great Idea,

I was thinking, of the answers, If marking the answers are only available through actually doing them on a wiki, references to tiddlywiki.com or a package of test data to complement the questions. This is a great learning experience especially when the answers right or wrong have usable information in them.

Love your work Luis
Tony

A Gloom

unread,
Mar 4, 2020, 11:36:54 PM3/4/20
to TiddlyWiki
Luis,

Are you incorporating the test (more test would be good too) into your book?  I believe the test with links to corresponding sections (relating to the question) of the book would be a good addition to the book

Luis Gonzalez

unread,
Mar 5, 2020, 7:53:49 AM3/5/20
to TiddlyWiki
It is a good idea.
I will create some test for the book.

Reply all
Reply to author
Forward
0 new messages