gift: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(→‎Format symbol table: expand examples)
Line 10: Line 10:
! Symbol !! Use
! Symbol !! Use
|-
|-
| // text || Comment
| // text || Comment (optional)
|-
|-
| ::title:: || Question title
| ::title:: || Question title (optional)
|-
|-
| text || Question text
| text || Question text
Line 18: Line 18:
| { || Start answer(s)
| { || Start answer(s)
|-
|-
| =text || Correct answer
| {T} or {F} || True or False answer
|-
|-
| ~text || Wrong answer
| { ... =text ... } || Correct answer for multiple choice or fill-in-the-blank
|-
|-
| =text -> text || Match answer
| { ... ~text ... } || Wrong answer for multiple choice or fill-in-the-blank
|-
|-
| # || Answer feedback or comment
| { ... =text -> text ... } || Match answer
|-
| # text || Answer feedback or comment
|-
|-
| {# || Numeric question start
| {# || Numeric question start
Line 30: Line 32:
| answer:range || Answer and tolerance range answering numeric question
| answer:range || Answer and tolerance range answering numeric question
|-
|-
| %n%answer:range || Weight n percent credit for answers in range
| %n%answer:range || Weight n percent credit for numeric answers in range
|-
|-
| } || End answers
| } || End answers
|}
|}
=== Examples ===
// true/false
::math:: 1+1=2 {T}
// multiple choice
::colors:: What's between orange and green in the spectrum? {=yellow ~red ~blue}
// fill-in-the-blank
::text math:: Two plus {=two =2} equals four.
// math range question
Five plus a number from two to four is: {#8:2}
// alternate layout
::Title
:: Question {
=Correct answer 1
=Correct answer 2
~Wrong answer 1
#response to wrong answer 1
~Wrong answer 2
#response to wrong answer 2
}


==See also==
==See also==
*[[picoformats]]
*[[picoformats]]

Revision as of 06:01, 5 February 2010

<entry-title>GIFT Syntax</entry-title>

short URL
http://bit.ly/giftax

The GIFT picoformat allows writing multiple-choice, true-false, short answer, matching, missing word, and numerical quiz questions in a simple text format. The GPLed Moodle Course/Learning Management System can import and export questions in the GIFT picoformat.

Format symbol table

Symbol Use
// text Comment (optional)
::title:: Question title (optional)
text Question text
{ Start answer(s)
{T} or {F} True or False answer
{ ... =text ... } Correct answer for multiple choice or fill-in-the-blank
{ ... ~text ... } Wrong answer for multiple choice or fill-in-the-blank
{ ... =text -> text ... } Match answer
# text Answer feedback or comment
{# Numeric question start
answer:range Answer and tolerance range answering numeric question
%n%answer:range Weight n percent credit for numeric answers in range
} End answers

Examples

// true/false
::math:: 1+1=2 {T}

// multiple choice
::colors:: What's between orange and green in the spectrum? {=yellow ~red ~blue}

// fill-in-the-blank
::text math:: Two plus {=two =2} equals four.

// math range question
Five plus a number from two to four is: {#8:2}

// alternate layout
::Title 
:: Question {
=Correct answer 1
=Correct answer 2
~Wrong answer 1
#response to wrong answer 1
~Wrong answer 2
#response to wrong answer 2
}

See also