As discussed in this post, I am using markdown syntax for italics - astericks * *
as the delimiter for clozes (for a spaced repetition system). By using CSS, I am hiding the italicized words so that it appear like a cloze (in the viewtemplate cascade for cloze review activated by ?
button in the viewtoolbar)
Currently I have hard-coded 5 radio buttons in the template for cloze review (as seen in the image shown above). But I want the no of radio buttons displayed to automatically change depending on the no of italicized words in the tiddler. How to do this? Can someone help ? Here is the link for the cloze review template tiddler
Below given is the code for the radio buttons from that template tiddler
__''Cloze review''__
No:of clozes as per previous session: {{{ [<currentTiddler>get[text]split[*]count[]subtract[1]divide[2]] }}}
<br>
Clozes answered correctly :
<$tiddler tiddler=<<currentTiddler>> >
<$radio field="clozes-answered-correctly" value="0" actions=<<cloze-score>> > 0-clozes </$radio>
<$radio field="clozes-answered-correctly" value="1" actions=<<cloze-score>> > 1-clozes </$radio>
<$radio field="clozes-answered-correctly" value="2" actions=<<cloze-score>> > 2-clozes </$radio>
<$radio field="clozes-answered-correctly" value="3" actions=<<cloze-score>> > 3-clozes </$radio>
<$radio field="clozes-answered-correctly" value="4" actions=<<cloze-score>> > 4-clozes </$radio>
</$tiddler>