Interesting. I’m trying to get some pbl training at the moment!
Yours looks like it might be a more organised solution to my current slightly ad hoc approach (Engineer's Text Book — A Hyperlinked Guide For Engineers).
So, how does the answer title relate to the question title? Does it have to be the same title with a Q and an A at the start? Would there be possibility to reference multi part/ tiddler answers?
You can see an example of my current Question/ Answer setup here:
I use numbering with title, so, Q001: Fixed bed reactor
question has the answer tiddler like: A001: Fixed bed reactor
For multi-part answer tiddler, I use an answer tiddler like above and then use section editor with se-type: my filter
.
But without the section editor you may want to have a $list widget in answer tiddler to aggregate all parts. You may use A001: Fixed bed reactor/p01, A001: Fixed bed reactor/p02, A001: Fixed bed reactor/p03, …
I see some of your questions have a desc field. Where is that used/ viewable or was it an idea which has been discarded?
I like that I can have a tighter integration between topics and questions. It can be tricky in my current implementation to find something, however…
Could you change the topic template to place information at the bottom of the tiddler after any pre-existing content? Currently placed at the top.
Or just a little more vertical space and a ___ line and leave it at the top. That might work. But maybe with a lot of questions in a topic that wouldn’t be ideal.
At the end before my other templates kick in…I currently place the templates manually at the end but it’s on my to do list to set it up to just apply them to tagged tiddlers.
Or maybe a modal/ pop up?
Two existing tiddlers tagged topic.
Don’t really want the question info at the bottom of velocity for example, but not sure I’d want five or six questions listed as the first thing in the tiddler.
I’ll stop updating this post now. Promise.
I believed that every Question Tiddler is essentially a Tiddler, meaning all the features applicable to a general Tiddler can also utilized in a Question Tiddler. This serves as example of such reasoning.
Dou mean the statistics? Well it is a matter of taste! It comes from viewtemplate and you can simply manipulate the list-after and list-before fields and put it where you like.
Check here in style tiddler:
.kk-pdeck-topic-stat {
display: flex
;
flex-direction: column;
float: right;
}
and it to see where it fits your requirements.
These comes from viewtemplate, feel free to put theme where you like! These are a matter of tase!
You can hide them.
In real work, I use Problem Deck with Mehregan, where I can add notes, todos and keywords to Question tiddlers.
The statistics and the question list when viewed in a topic containing information.
If the topic is purely for the question list that’s fine, but if the topic has some in information in then I’m not sure it looks good, or is desirable to have a list of questions before the text. I’m not sure WHERE you might put the questions. I like that they are there, as it makes the whole thing hang together more. I think I might be pushing this in an unintended direction from your original ‘just an exam question repository’ by wanting ALL MY STUFF IN ONE BIG WIKI approach
At the risk of overcomplicating things, perhaps the statistics sit to the left and the question list is revealed by clicking on ‘Questions’
Click on the http://hwh.stephenteacher.com/txtbook.html#SUVAT and see what you think about the formatting. (you’re much better at making TW pages look better than me!)
I’ll have a tinker tomorrow.
That’s true! When creating a new exam, I select questions from various topics. To simplify this, I use a Topic Tiddler to easily pick questions from a specific topic. On the other hand, each Question Tiddler lists all exams where it has been used, with the most recent exam displayed first.
Feel free to hack, or create a new flavor of pdeck and share it with us!
That took longer than expected…
I’ve changed $:/plugins/kookma/pdeck/viewtemplates/topic to
\function topic.filter() [tag[Question]contains:topic<currentTiddler>]
<$list filter=[{!!title}tag[Topic]]>
<aside class="kk-pdeck-topic-stat">
<span>Statistics</span>
<span>Exams: <$count filter="[topic.filter[]get[exam]enlist-input[]unique[]]"/></span>
<span>
<$button>
<$action-navigate $to={{{ [<currentTiddler>addprefix[Questions for ]] }}} $scroll="yes"/>
Questions:
</$button>
<$count filter="[topic.filter[]]"/></span>
and another view template conatins:
<% if [<storyTiddler>prefix[Questions for ]] %>
<$let parentTiddler={{{ [<storyTiddler>removeprefix[Questions for ]join[ ]] }}}>
QUIZ examples for <$tiddler tiddler=<<parentTiddler>> > <$link/> </$tiddler>
<$list filter="[tag[Question]contains:topic<parentTiddler>]"><$link/><br/>
<div class="kk-pdeck-examlist">
<$list filter="[enlist{!!exam}]" join=" | "><$text text=<<currentTiddler>>/></$list>
</div>
Which opens the Questions list in a new tiddler.
Hi Mohammad,
Hopefully a simple thing I’m missing:
I’d like to have Topics automatically picked up by the view template from the topics field in the Question.
I’ve tried placing <$list filter="[title<currentTiddler>listed[topic]tag[Question]]">
in the list filter of the topic view template (as shown in the reply above) which targets the correct tiddlers but this results in the count not working, some multiple instances of the button. < edit>Because it changes the filter! So of course the count doesn’t work!< /edit> It also doesn’t update the side bar.
Where would I put the list filter to apply the topic viewtemplate to any tiddler used in the question topic field and update the topics in the sidebar? Is probably a better question?
@Mohammad
One last question then I’ll stop hassling you about this!
Probably…
@Scott_Sauyet has provided code to automatically apply $:/plugins/kookma/pdeck/viewtemplates/topic to things tagged topic in Question tiddlers. However the topic tag is still needed for the Topics section of the side bar, and I have no clue which tiddler I need to edit to get that to use the topic field in Question tiddlers and NOT the Topic tag.
@Mohammad
Multi part questions:
I have a question in which the answer is across three levels.
And as named, the question tiddler picks up all the answers, how ever, the answers don’t all point back to the question.
For example A: Winding Drum/1/1 points to Q: Winding Drum/1.
I have found that anything other than /1
or /2
etc suffixed at the end of an answer leads to this problem. Is this something which can be tweaked please?
(I don’t even know where to look in the plugin!)
Hi @Ste_W
Unfortunately, I’m away from my desk and not working on TW at the moment. However, please take a look at the view template for answer tiddlers to see how I’ve created the link to the question from the title of the answer tiddler. You’ll need to modify it. My solution is very specific and not general, but you can change it. A rough idea would be to have a field that stores the title of the question, and your view template can simply use it to create a link to the question tiddler.
I’m sorry… That’s not acceptable
I’ll have a prod around. I’m not sure I’ll get anywhere though :). Cheers.
I’m Guessing the relevant tiddler is $:/plugins/kookma/pdeck/viewtemplates/goto?
(If I can get this sorted I’ll try to repackage it as PDeck the SW tweaks plugin if that’s ok)
Go for it! I’m open to alternatives or modified versions with extra features.