h5p-question-set/semantics.json

558 lines
14 KiB
JSON
Raw Permalink Normal View History

2013-04-04 15:44:06 +02:00
[
{
"name": "introPage",
"type": "group",
"label": "Quiz introduction",
2016-12-16 11:36:39 +01:00
"importance": "medium",
2013-04-04 15:44:06 +02:00
"fields": [
{
"name": "showIntroPage",
"type": "boolean",
2016-12-12 15:54:29 +01:00
"label": "Display introduction",
2016-12-16 11:36:39 +01:00
"importance": "low"
2013-04-04 15:44:06 +02:00
},
{
"name": "title",
"type": "text",
"label": "Title",
2016-12-16 11:36:39 +01:00
"importance": "high",
"optional": true,
"description": "This title will be displayed above the introduction text.",
"tags": [
"sub",
"sup",
"strong",
"em",
"code"
]
2013-04-04 15:44:06 +02:00
},
{
"name": "introduction",
"type": "text",
"widget": "html",
"label": "Introduction text",
2016-12-16 11:36:39 +01:00
"importance": "medium",
"optional": true,
"description": "This text will be displayed before the quiz starts.",
"enterMode": "p",
"tags": [
"sub",
"sup",
"strong",
"em",
"p",
"code"
]
2013-04-04 15:44:06 +02:00
},
{
"name": "startButtonText",
"type": "text",
"label": "Start button text",
2016-12-16 11:36:39 +01:00
"importance": "low",
"optional": true,
"default": "Start Quiz"
},
{
"name": "backgroundImage",
"type": "image",
"label": "Background image",
2016-12-16 11:36:39 +01:00
"importance": "low",
"optional": true,
"description": "An optional background image for the introduction."
2013-04-04 15:44:06 +02:00
}
]
},
2014-10-08 14:53:43 +02:00
{
"name": "backgroundImage",
"type": "image",
"label": "Background image",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-10-08 14:53:43 +02:00
"optional": true,
"description": "An optional background image for the Question set."
},
{
"name": "progressType",
"type": "select",
"label": "Progress indicator",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-10-08 14:53:43 +02:00
"description": "Question set progress indicator style.",
"options": [
{
"value": "textual",
"label": "Textual"
},
{
"value": "dots",
"label": "Dots"
}
],
"default": "dots"
},
{
"name": "passPercentage",
"type": "number",
"label": "Pass percentage",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-10-08 14:53:43 +02:00
"description": "Percentage of Total score required for passing the quiz.",
"min": 0,
"max": 100,
"step": 1,
"default": 50
},
{
"name": "questions",
"label": "Questions",
2016-12-16 11:36:39 +01:00
"importance": "high",
2014-10-08 14:53:43 +02:00
"type": "list",
2014-12-03 13:02:31 +01:00
"widgets": [
{
"name": "VerticalTabs",
"label": "Default"
},
{
"name": "QuestionSetTextualEditor",
"label": "Textual"
}
],
2014-10-08 14:53:43 +02:00
"min": 1,
"entity": "question",
"field": {
"name": "question",
"type": "library",
"label": "Question type",
2016-12-16 11:36:39 +01:00
"importance": "high",
2014-10-08 14:53:43 +02:00
"description": "Library for this question.",
"options": [
2019-07-15 15:30:33 +02:00
"H5P.MultiChoice 1.14",
2018-08-23 13:41:13 +02:00
"H5P.DragQuestion 1.13",
2019-07-15 15:30:33 +02:00
"H5P.Blanks 1.12",
2018-08-23 13:41:13 +02:00
"H5P.MarkTheWords 1.9",
"H5P.DragText 1.8",
2019-07-15 15:30:33 +02:00
"H5P.TrueFalse 1.6",
2019-07-12 14:09:48 +02:00
"H5P.Essay 1.2"
2014-10-08 14:53:43 +02:00
]
}
},
2013-04-04 15:44:06 +02:00
{
"name": "texts",
"type": "group",
"label": "Interface texts in quiz",
2016-12-16 11:36:39 +01:00
"importance": "low",
2013-04-04 15:44:06 +02:00
"common": true,
"fields": [
{
"name": "prevButton",
"type": "text",
"label": "Back button",
2016-12-16 11:36:39 +01:00
"importance": "low",
2016-04-08 16:07:24 +02:00
"default": "Previous question"
2013-04-04 15:44:06 +02:00
},
{
"name": "nextButton",
"type": "text",
"label": "Next button",
2016-12-16 11:36:39 +01:00
"importance": "low",
2016-04-08 16:07:24 +02:00
"default": "Next question"
2013-04-04 15:44:06 +02:00
},
{
"name": "finishButton",
"type": "text",
"label": "Finish button",
2016-12-16 11:36:39 +01:00
"importance": "low",
2013-04-04 15:44:06 +02:00
"default": "Finish"
},
{
"name": "textualProgress",
"type": "text",
"label": "Progress text",
2016-12-16 11:36:39 +01:00
"importance": "low",
2013-04-04 15:44:06 +02:00
"description": "Text used if textual progress is selected.",
"default": "Question: @current of @total questions",
"tags": [
"strong",
"em",
"code"
]
},
{
"name": "jumpToQuestion",
"type": "text",
"label": "Label for jumping to a certain question",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "You must use the placeholder '%d' instead of the question number, and %total instead of total amount of questions.",
"default": "Question %d of %total"
},
{
"name": "questionLabel",
"type": "text",
"label": "Copyright dialog question label",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Question"
},
{
"name": "readSpeakerProgress",
"type": "text",
"label": "Readspeaker progress",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "May use @current and @total question variables",
"default": "Question @current of @total"
},
{
"name": "unansweredText",
"type": "text",
"label": "Unanswered question text",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Unanswered"
},
{
"name": "answeredText",
"type": "text",
"label": "Answered question text",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Answered"
},
{
"name": "currentQuestionText",
"type": "text",
"label": "Current question text",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Current question"
2013-04-04 15:44:06 +02:00
}
]
},
{
"name": "disableBackwardsNavigation",
"type": "boolean",
"label": "Disable backwards navigation",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "This option will only allow you to move forward in Question Set",
"optional": true,
"default": false
},
{
"name": "randomQuestions",
"type": "boolean",
"label": "Randomize questions",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "Enable to randomize the order of questions on display.",
"default": false
},
{
"name": "poolSize",
"type": "number",
2016-10-25 13:36:11 +02:00
"min": 1,
"label": "Number of questions to be shown:",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "Create a randomized batch of questions from the total.",
"optional": true
},
2013-04-04 15:44:06 +02:00
{
"name": "endGame",
"type": "group",
"label": "Quiz finished",
2016-12-16 11:36:39 +01:00
"importance": "medium",
2013-04-04 15:44:06 +02:00
"fields": [
{
"name": "showResultPage",
"type": "boolean",
"label": "Display results",
2016-12-16 11:36:39 +01:00
"importance": "low",
2013-04-04 15:44:06 +02:00
"default": true
},
{
"name": "showSolutionButton",
"type": "boolean",
"label": "Display solution button",
"default": true
},
{
"name": "showRetryButton",
"type": "boolean",
"label": "Display retry button",
"default": true
},
{
"name": "noResultMessage",
"type": "text",
"label": "No results message",
2016-12-16 11:36:39 +01:00
"importance": "low",
"description": "Text displayed on end page when \"Display results\" is disabled",
"default": "Finished",
"optional": true
},
{
"name": "message",
"type": "text",
"label": "Feedback heading",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Your result:",
"description": "This heading will be displayed at the end of the quiz when the user has answered all questions.",
"tags": [
"strong",
"em",
"code"
]
},
{
"name": "overallFeedback",
"type": "group",
"label": "Overall Feedback",
2016-12-16 11:36:39 +01:00
"importance": "low",
"expanded": true,
"fields": [
{
"name": "overallFeedback",
"type": "list",
"widgets": [
{
"name": "RangeList",
"label": "Default"
}
],
"importance": "high",
"label": "Define custom feedback for any score range",
"description": "Click the \"Add range\" button to add as many ranges as you need. Example: 0-20% Bad score, 21-91% Average Score, 91-100% Great Score!",
"entity": "range",
"min": 1,
"defaultNum": 1,
"optional": true,
"field": {
"name": "overallFeedback",
"type": "group",
"importance": "low",
"fields": [
{
"name": "from",
"type": "number",
"label": "Score Range",
"min": 0,
"max": 100,
"default": 0,
"unit": "%"
},
{
"name": "to",
"type": "number",
"min": 0,
"max": 100,
"default": 100,
"unit": "%"
},
{
"name": "feedback",
"type": "text",
"label": "Feedback for defined score range",
"importance": "low",
"placeholder": "Fill in the feedback",
"optional": true
}
]
}
}
]
},
2013-04-04 15:44:06 +02:00
{
"name": "oldFeedback",
"type": "group",
"label": "Old Feedback",
2016-12-16 11:36:39 +01:00
"importance": "low",
"deprecated": true,
"fields": [
{
"name": "successGreeting",
"type": "text",
"label": "Quiz passed greeting",
"importance": "low",
"optional": true,
"description": "This text will be displayed above the score if the user has successfully passed the quiz.",
"tags": [
"strong",
"em",
"code"
]
},
{
"name": "successComment",
"type": "text",
"widget": "html",
"label": "Passed comment",
"importance": "low",
"optional": true,
"description": "This comment will be displayed after the score if the user has successfully passed the quiz.",
"tags": [
"sub",
"sup",
"strong",
"em",
"a",
"p",
"code"
]
},
{
"name": "failGreeting",
"type": "text",
"label": "Quiz failed title",
"importance": "low",
"optional": true,
"description": "This text will be displayed above the score if the user has failed the quiz.",
"tags": [
"strong",
"em",
"code"
]
},
{
"name": "failComment",
"type": "text",
"widget": "html",
"label": "Failed comment",
"importance": "low",
"optional": true,
"description": "This comment will be displayed after the score if the user has failed the quiz.",
"tags": [
"sub",
"sup",
"strong",
"em",
"a",
"p",
"code"
]
}
]
},
{
"name": "solutionButtonText",
"type": "text",
"label": "Solution button label",
2016-12-16 11:36:39 +01:00
"importance": "low",
"default": "Show solution",
"description": "Text for the solution button."
},
2014-11-27 11:01:47 +01:00
{
"name": "retryButtonText",
"type": "text",
"label": "Retry button label",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-11-27 11:01:47 +01:00
"default": "Retry",
"description": "Text for the retry button."
},
{
"name": "finishButtonText",
"type": "text",
"label": "Finish button text",
2016-12-16 11:36:39 +01:00
"importance": "low",
2013-05-03 18:51:10 +02:00
"default": "Finish"
},
{
"name": "showAnimations",
"type": "boolean",
2016-12-12 15:54:29 +01:00
"label": "Display video before quiz results",
2016-12-16 11:36:39 +01:00
"importance": "low"
},
{
"name": "skippable",
"type": "boolean",
2016-12-12 15:54:29 +01:00
"label": "Enable skip video button",
2016-12-16 11:36:39 +01:00
"importance": "low"
},
{
"name": "skipButtonText",
"type": "text",
"label": "Skip video button label",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-11-27 11:01:47 +01:00
"default": "Skip video"
},
{
"name": "successVideo",
"type": "video",
"label": "Passed video",
2016-12-16 11:36:39 +01:00
"importance": "low",
"optional": true,
"description": "This video will be played if the user successfully passed the quiz."
},
{
"name": "failVideo",
"type": "video",
"label": "Fail video",
2016-12-16 11:36:39 +01:00
"importance": "low",
"optional": true,
"description": "This video will be played if the user fails the quiz."
2013-04-04 15:44:06 +02:00
}
]
2014-11-27 11:01:47 +01:00
},
{
"name": "override",
"type": "group",
"label": "Settings for \"Check\", \"Show solution\" and \"Retry\"",
2016-12-16 11:36:39 +01:00
"importance": "low",
2014-11-27 11:01:47 +01:00
"optional": true,
"fields": [
{
"name": "checkButton",
"type": "boolean",
"label": "Show \"Check\" buttons",
"importance": "low",
"description": "This option determines if the \"Check\" button will be shown for all questions.",
"optional": true,
"default": true
},
2014-11-27 11:01:47 +01:00
{
2016-04-04 15:50:41 +02:00
"name": "showSolutionButton",
"type": "select",
"label": "Override \"Show Solution\" button",
2016-12-16 11:36:39 +01:00
"importance": "low",
2016-04-04 15:50:41 +02:00
"description": "This option determines if the \"Show Solution\" button will be shown for all questions, disabled for all or configured for each question individually.",
"optional": true,
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "checkButton",
"equals": true
}
]
},
2016-04-04 15:50:41 +02:00
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
2014-11-27 11:01:47 +01:00
},
{
2016-04-04 15:50:41 +02:00
"name": "retryButton",
"type": "select",
"label": "Override \"Retry\" button",
2016-12-16 11:36:39 +01:00
"importance": "low",
2016-04-04 15:50:41 +02:00
"description": "This option determines if the \"Retry\" button will be shown for all questions, disabled for all or configured for each question individually.",
"optional": true,
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "checkButton",
"equals": true
}
]
},
2016-04-04 15:50:41 +02:00
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
2014-11-27 11:01:47 +01:00
}
]
2013-04-04 15:44:06 +02:00
}
]