Template:Quiz Numeric Cloze/doc

From WikiEducator
Jump to: navigation, search

This template is used to create cloze (fill-in-the-blank) quiz questions that deal with numbers. One or more questions may be included for each implementation of the template.

This is an experimental feature, with functionality and format subject to change based on user feedback. This version is currently not working. It is still working like a string comparison instead of a numeric comparison

Usage

Parameters

The Quiz_Cloze template requires three parameters:

  1. a string of letters and numbers that uniquely names the quiz on the page.
  2. the heading for the quiz. If left blank, no heading will be displayed above the quiz questions.
  3. the quiz, the top level of which must be an unordered list. In each item, any underlined number (marked with <u>...</u>) is converted to an input box for the student to fill in. When the text cursor moves out of an input box correct answers are shown with green backgrounds and incorrect responses with red backgrounds. When a question includes more than one input box, each box is evaluated and "scored" as the cursor moves out of the box.

Note: It will be necessary to explicitly name this parameter when equal signs are used in the question statement (ie 3= ...)

One optional parameter may soon be available:

  • caution : which could be used to indicate the correct number of significant digits


Wiki syntax

When copying and pasting the following wiki syntax to a page, be sure that each question begins with an asterisk which is positioned on the left margin of a new line.

{{Quiz_Numeric_Cloze|q2|Fill in the Blanks|3=
* Try this addition: 4.7 + 0.3 = <u>5.0</u>
* Try this subtraction: 0.8 - 0.3 = <u>0.5</u>
}}

Example

Icon qmark.gif

Fill in the Blanks

  • Try this addition: 4.7 + 0.3 = 5.0
  • Try this subtraction: 0.8 - 0.3 = 0.5

See also