|
Magic words
From Qedoc
| | This article relates to features introduced in version 1.4.6. |
A Magic Word is a code embedded in a Qedoc Quiz Maker task which turns into something else each time the quiz is actually displayed to a learner.
Example of a magic word
The best example is the code {username} (i.e. the word username enclosed in curly brackets). If you insert {username} into a question, hint, feedback field (or even an answer), the Qedoc Quiz Player replaces this at runtime with the name of the currently logged in user (as displayed in the top left-hand corner of the Player). This can be used to good effect to give a more personalised feel to a test.
Examples:
Q: What is your name? A: {username}
Or slightly more useful (for a young learner):
Q: Can you spell your name? A: {username}
Or more commonly, in any quiz:
(Placed in the feedback field) "Well done, {username}!"
List of current magic words
- {username} - as above.
- {title} - the title of the module.
- {dayofweek} - the current day of the week.
- {month} - the current month of the year.
Suggested future magic words
You can add your own suggestions here.
- {dtx}: inserts a table based in a data table, typically into a presentation so the learner can use the table as reference.
- {levelsize}: number of questions in this quiz.

