maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
142 stars 149 forks source link

[[question_parts]] block #1244

Open georgekinnear opened 3 months ago

georgekinnear commented 3 months ago

This block would provide a syntax for marking up multi-part questions. It would allow for more consistent styling, that could be controlled across questions - similar to how the .HELM_parts class was used to do this across the HELM materials.

Here is an example of the sort of syntax I have in mind:

[[question_parts id="equations" labels="(a)"]]

[[qpart id="roots"]]
  <p>Find the roots of the equation {@eqn@}.</p>
  <p>[[input:ans1]] [[validation:ans1]] [[feedback:prt1]]</p>
[[qpart]]

[[qpart]]
  <p>Hence solve the equation {@eqn2@].</p>
  <p>[[input:ans2]] [[validation:ans2]] [[feedback:prt2]]</p>
[[qpart]]

[[/question_parts]]