Loading...
 
Skip to main content

History: PluginExercise

Source of version: 17 (current)

Copy to clipboard
            ! Plugin Exercise
''Introduced with ((Tiki9))''

Use this ((wiki plugin)) to create exercises within a wiki page for students to test their new skills. Use this plugin to define inline questions and give optional answers to be selected from. A score is given for multiple exercises within a page. The plugin can be used to create questions with suggested answers or with a text input. 

!!Parameters
{pluginmanager plugin="exercise"}
!!Examples
!!! Choose the correct homonym between where/were/we're
The below example will display the sentence with 3 text boxes where the exercise plugins are included inline. The plugin that does not expect an answer will be used to display the controls to check the score. There can be multiple exercise blocks within a single page.
{CODE(colors="tiki")}
This week-end {exercise answer=we're} going to go {exercise answer=where} 
we {exercise answer=were} best served.

{exercise}
{CODE}
!!! Same example with suggestions
Instead of displaying text boxes, drop-down will be displayed. The last section indicates the other options to display additionally to the right answer specified in-line. The order will be randomized. The last question also specifies justifications that will be provided after the correction is made.

''This code:''
{CODE(colors="tiki")}
This week-end {exercise answer=we're} going to go {exercise answer=where} 
we {exercise answer=were} best served.

{EXERCISE()}
--- Comments can be written after the triple-dash.
where
were
---
were
we're
---
where: Not a location
we're: Cannot be replaced by 'we are'
{EXERCISE}
{CODE}
''Would produce (screenshot):''
{img fileId=640}

As produced from the code:
This week-end {exercise answer=we're} going to go {exercise answer=where} 
we {exercise answer=were} best served.

{EXERCISE()}
--- Comments can be written after the triple-dash.
where
were
---
were
we're
---
where: Not a location
we're: Cannot be replaced by 'we are'
{EXERCISE}

Alternatively, the options can be provided in-line instead of in the end block. This may be helpful to keep the information in-context, but sacrifices some readability in the text:
{CODE(colors="tiki")}
This week-end {exercise answer=we're incorrect="where + were"} going to 
go {exercise answer=where incorrect="were + we're"} we {exercise 
answer=were incorrect="where (Not a location) + we're (Cannot be 
replaced by 'we are')"} best served.

{exercise}
{CODE}

Produces:
This week-end {exercise answer=we're incorrect="where + were"} going to 
go {exercise answer=where incorrect="were + we're"} we {exercise 
answer=were incorrect="where (Not a location) + we're (Cannot be 
replaced by 'we are')"} best served.

{exercise}

{include page="Module and Plugin Includes" start="startinclude2" stop="stopinclude2"}