Template:Quiz Cloze

From WikiEducator
Jump to: navigation, search

[edit]

Documentation

This template is used to create cloze (fill-in-the-blank) quiz questions. 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.

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 word (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.

One optional parameter is available:

  • caution = {true/false}, the default is false. When caution=true, the input box turns light orange if the cursor moves out of the box before completing the word. The input box will be orange regardless of the letters entered, until the number of letters in the answer are entered, at which point the box turns red (incorrect letters) or green (correct letters).

Cloze Quiz

Template parameters
ParameterDescriptionTypeDefaultStatus
Label1a string of letters and numbers that uniquely names the quiz on the pagestringz01required
Heading2heading displayed above quizstringemptyrequired
Quiz3unordered list of questions, with underlined words that are converted to input boxesstringemptyrequired
Cautioncautionif true, warns when cursor is moved from box before entering correct number of charactersnumberfalseoptional

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_Cloze|q2|Fill in the Blanks|
* The <u>blue</u>  <u>whale</u> is the largest mammal.
* <u>A</u> is the first letter of the Roman alphabet.
|caution=true
}}

Example

Icon qmark.gif
Fill in the Blanks
  • The blue whale is the largest mammal.
  • A is the first letter of the Roman alphabet.



See also