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).

<templatedata> { "description": "Cloze Quiz", "params": {

               "1": {
                       "label": "Label",
                       "description": "a string of letters and numbers that uniquely names the quiz on the page",
                       "aliases": [],
                       "default": "z01",
                       "type": "string",
                       "required": true
               },
               "2": {
                       "label": "Heading",
                       "description": "heading displayed above quiz",
                       "aliases": [],
                       "default": "",
                       "type": "string",
                       "required": true
               },

"3": { "label": "Quiz", "description": "unordered list of questions, with underlined words that are converted to input boxes", "aliases": [], "default": "", "type": "string", "required": true }, "caution": { "label": "Caution", "description": "if true, warns when cursor is moved from box before entering correct number of characters", "aliases": [], "default": "false", "type": "number", "required": false } } } </templatedata>

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