\define againQuality() 0
\define hardQuality() 1
\define goodQuality() 2
\define easyQuality() 3
\define updateActions()
<!-- UPDATE question parameters -->
<$formula-vars eq="$(quality)$ + 1">
<$action-setfield $field="eq" $value=<<eq>>/>
<$formula-vars repetition="{{!!repetition}} + 1">
<$action-setfield $field="repetition" $value=<<repetition>>/>
<$formula-vars due="<<repetition>> + 20">
<$action-setfield $field="due" $value=<<due>>/>
</$formula-vars>
</$formula-vars>
</$formula-vars>
<!-- REMOVE Answer Button Row -->
<$action-sendmessage $message="tm-remove-field" $param="state"/>
<!-- CLOSE this question -->
<$action-sendmessage $message="tm-close-tiddler"/>
\end
<!-- ACTIVATE this template for all tiddlers tagged Flash Cards -->
<$list filter="[all[current]tag[Flash Card]]">
<$fieldmangler>
Question: {{!!question}}
<br/>
<!-- IF it does NOT have the field state: SHOW QUESTION -->
<$list filter="[all[current]!has:field[state]]">
<$button>
Show Answer
<!-- ADD the field state -->
<$action-sendmessage $message="tm-add-field" $param="state"/>
</$button>
</$list>
<!-- IF it DOES have the field state: SHOW ANSWER-->
<$list filter="[all[current]has:field[state]]">
Answer: {{!!answer}}
<!-- SHOW answer buttons -->
<br/>
<$button>
Again
<!-- Calculate New Parameters -->
<$action-setfield $field="quality" $value=<<againQuality>>/>
<<updateActions>>
</$button>
<$button>
Hard
<!-- Calculate New Parameters -->
<$action-setfield $field="quality" $value=<<hardQuality>>/>
<<updateActions>>
</$button>
<$button>
Good
<!-- Calculate New Parameters -->
<$action-setfield $field="quality" $value=<<goodQuality>>/>
<<updateActions>>
</$button>
<$button>
Easy
<!-- Calculate New Parameters -->
<$action-setfield $field="quality" $value=<<easyQuality>>/>
<<updateActions>>
</$button>
</$list>
</$fieldmangler>
</$list>
Does sound a useful tool to put in tiddlywiki. I was interested in building something similar for review and study times rather than at the question level. Its more about scheduling study.
Once such a question answer solution exists it seems to me the next opportunity is how to populate it with questions. Imagin if you could dump a translation dictionary on it. Alternativly manual question creation needs to be quick and easy. Could questions even be created from marking up your study notes?
Regards
Tony
I agree with you! I would love to work on this with you! Im still very new to TW plugin development. All of Anwiki right now is just a set of simple macros. If you're interested, let me know and we can coordinate in private emails to continue working on this!