Changes
Page history
Update Quizz Tutorial
authored
Feb 02, 2022
by
Tarik Ocaktan
Show whitespace changes
Inline
Side-by-side
Quizz-Tutorial.md
View page @
9eab7d86
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
Visit the Github page of
[
asciidoctor-question
](
https://github.com/hobbypunk90/asciidoctor-question
)
.
Visit the Github page of
[
asciidoctor-question
](
https://github.com/hobbypunk90/asciidoctor-question
)
.
Install the package using
`gem`
:
Install the package using
`gem`
:
```
```
plaintext
gem install asciidoctor-question
gem install asciidoctor-question
```
```
In your
`adoc`
file write the following code:
In your
`adoc`
file write the following code:
```
```
plaintext
[question, mc]
[question, mc]
....
....
Lorem ipsum dolor sit amet, consetetur
Lorem ipsum dolor sit amet, consetetur
...
@@ -25,14 +27,14 @@ magna aliquyam erat, sed diam voluptua.
...
@@ -25,14 +27,14 @@ magna aliquyam erat, sed diam voluptua.
```
```
Run the following command in order to convert the
`adoc`
into
`html`
:
Run the following command in order to convert the
`adoc`
into
`html`
:
```
asciidoctor -r asciidoctor-question sample.adoc
```
plaintext
asciidoctor -r asciidoctor-question sample.adoc
```
```
## Creating a multiple-choice quiz in `Markdown` language
## Creating a multiple-choice quiz in `Markdown` language
```
`
```
plaintext
?[Lorem ipsum dolor sit amet, consetetur
?[Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod
sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore
tempor invidunt ut labore et dolore
...
@@ -40,64 +42,16 @@ magna aliquyam erat, sed diam voluptua.?]
...
@@ -40,64 +42,16 @@ magna aliquyam erat, sed diam voluptua.?]
-[x] ipsum
-[x] ipsum
-[ ] eltir
-[ ] eltir
-[x] ut
-[x] ut
````
```
## Creating a multiple-choice quiz with feedback
## Creating a multiple-choice quiz with feedback
````
{Question
|type="()"}
+ The correct answer.
|| Feedback for correct answer.
- Distractor.
|| Feedback for distractor.
- Distractor.
|| Feedback for distractor.
- Distractor.
|| Feedback for distractor.
````
The previous code will generate the following quiz:
<quiz>
{Question
|type="()"}
+
The correct answer.
|| Feedback for correct answer.
-
Distractor.
|| Feedback for distractor.
-
Distractor.
|| Feedback for distractor.
-
Distractor.
|| Feedback for distractor.
</quiz>
See:
[
wikiversity.org
](
https://en.wikiversity.org/wiki/Help:Quiz#quiz19
)
{| class="wikitable"
!wikitext
<br>
(what you write)!!rendering
<br>
(what you see)!!comments
|-
See:
[
wikiversity.org
](
https://en.wikiversity.org/wiki/Help:Quiz#quiz19
)
|valign=top width=200|
<
quiz
>
<br>
''insert questions here''
<br>
<
/quiz
>
|valign=top|
{|
|
<quiz>
{Sample Question 1
|type="()"}
+
The correct answer.
-
Distractor.
-
Distractor.
-
Distractor.
{Sample Question 2
|type="()"}
+
The correct answer.
-
Distractor.
-
Distractor.
-
Distractor.
</quiz>
|}