Subversion Repositories wimsdev

Rev

Rev 17142 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17142 Rev 17175
Line 99... Line 99...
99
  <li>The second line represents feedback, which will be displayed
99
  <li>The second line represents feedback, which will be displayed
100
      after validation of the answers (can be left empty).</li>
100
      after validation of the answers (can be left empty).</li>
101
  <li>Enter on the 3rd line the list of correct answer numbers, separated by commas.
101
  <li>Enter on the 3rd line the list of correct answer numbers, separated by commas.
102
      (The numbers represent the order in which the proposals are written below)</li>
102
      (The numbers represent the order in which the proposals are written below)</li>
103
  <li>Each following line represents the different response proposals.</li></ol>
103
  <li>Each following line represents the different response proposals.</li></ol>
104
<div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Example : <br/>
104
<div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Example : <br>
105
<pre>Statement of question #1
105
<pre>Statement of question #1
106
Feedback displayed if wrong answer to question #1
106
Feedback displayed if wrong answer to question #1
107
Number(s) of the correct answer(s)
107
Number(s) of the correct answer(s)
108
Choice #1
108
Choice #1
109
Choice #2
109
Choice #2
110
Choice #3</pre></div>
110
Choice #3</pre></div>
111
<p class="oef_indbad"><strong>Warning:</strong> Semicolons are forbidden here</p>
111
<p class="oef_indbad"><strong>Warning:</strong> Semicolons are forbidden here</p>
112
<hr/>
112
<hr>
113
<p><em>Optional:</em> You can optionally add a first line that will contain variables to insert a title, an image, sound.
113
<p><em>Optional:</em> You can optionally add a first line that will contain variables to insert a title, an image, sound.
114
 (nb: you must be in a class or module to transfer these files).<br/>
114
 (nb: you must be in a class or module to transfer these files).<br>
115
 In this case, it will be the second line (and not the first) that will represent the statement, the third one the feedback, and so on ....
115
 In this case, it will be the second line (and not the first) that will represent the statement, the third one the feedback, and so on ....
116
</p>
116
</p>
117
Possible variables are:
117
Possible variables are:
118
<ul>
118
<ul>
119
  <li><code>Qtitle</code> : display a title at the beginning of the question. (for example to indicate the theme)</li>
119
  <li><code>Qtitle</code> : display a title at the beginning of the question. (for example to indicate the theme)</li>
120
  <li><code>Qimage</code> : if an image file is specified, it will be displayed at the beginning of the question.
120
  <li><code>Qimage</code> : if an image file is specified, it will be displayed at the beginning of the question.
121
    (only works in a module or class)</li>
121
    (only works in a module or class)</li>
122
  <li><code>Qaudio</code> : if a sound file is indicated, it will be displayed at the beginning of the question.
122
  <li><code>Qaudio</code> : if a sound file is indicated, it will be displayed at the beginning of the question.
123
    (only works in a module or class, known bugs with Safari)</li>
123
    (only works in a module or class, known bugs with Safari)</li>
124
</ul>
124
</ul>
125
<div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Exemple : <br/>
125
<div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Exemple : <br>
126
  <pre>Qtitle="Title of the question #2" Qimage="image.jpg" Qaudio="sound.mp3"
126
  <pre>Qtitle="Title of the question #2" Qimage="image.jpg" Qaudio="sound.mp3"
127
Statement of question #2
127
Statement of question #2
128
Feedback displayed if wrong answer to question #2
128
Feedback displayed if wrong answer to question #2
129
Number(s) of the correct answer(s)
129
Number(s) of the correct answer(s)
130
Choice #1
130
Choice #1
Line 152... Line 152...
152
Shanghaï
152
Shanghaï
153
Tokyo)}
153
Tokyo)}
154
 
154
 
155
:Question 3
155
:Question 3
156
 
156
 
157
\text{data3=asis(What's the name of this river? <div><img src="http://upload.wikimedia.org/wikipedia/commons/e/e4/Mekong_River_watershed.png"/></div>
157
\text{data3=asis(What's the name of this river? <div><img src="http://upload.wikimedia.org/wikipedia/commons/e/e4/Mekong_River_watershed.png"></div>
158
About 70 million people live directly in the Mekong watershed.
158
About 70 million people live directly in the Mekong watershed.
159
1
159
1
160
The Mekong
160
The Mekong
161
The Yangzi Jiang
161
The Yangzi Jiang
162
The Volga
162
The Volga
Line 230... Line 230...
230
1
230
1
231
Swan Lake
231
Swan Lake
232
Nutcracker)}
232
Nutcracker)}
233
 
233
 
234
:Answer type
234
:Answer type
235
Choose "checkbox" to let a user select several choices.<br/>
235
Choose "checkbox" to let a user select several choices.<br>
236
Choose "radio" if only one of the choices has to be selected.
236
Choose "radio" if only one of the choices has to be selected.
237
\text{format=item(1, checkbox, radio)}
237
\text{format=item(1, checkbox, radio)}
238
 
238
 
239
:
239
:
240
\language{en}
240
\language{en}
Line 333... Line 333...
333
 \text{inst_image=wims(getopt Qimage in \preliminaire_test)}
333
 \text{inst_image=wims(getopt Qimage in \preliminaire_test)}
334
 \text{inst_title=wims(getopt Qtitle in \preliminaire_test)}
334
 \text{inst_title=wims(getopt Qtitle in \preliminaire_test)}
335
 
335
 
336
 \text{rab_inst=}
336
 \text{rab_inst=}
337
 \text{rab_inst=\inst_title notsametext ?\rab_inst <h2 class="wims_title">\inst_title</h2>}
337
 \text{rab_inst=\inst_title notsametext ?\rab_inst <h2 class="wims_title">\inst_title</h2>}
338
 \text{rab_inst=\inst_image notsametext ?\rab_inst <div class="wimscenter"><img src="\imagedir/\inst_image" alt="" /></div>}
338
 \text{rab_inst=\inst_image notsametext ?\rab_inst <div class="wimscenter"><img src="\imagedir/\inst_image" alt=""></div>}
339
 \if{\inst_audio notsametext }{
339
 \if{\inst_audio notsametext }{
340
     \text{rab_inst1= . isin \inst_audio ?
340
     \text{rab_inst1= . isin \inst_audio ?
341
       <audio controls>
341
       <audio controls>
342
        <source src="\imagedir/\inst_audio" type="audio/mpeg">
342
        <source src="\imagedir/\inst_audio" type="audio/mpeg">
343
        Sorry, your browser can't play audio files.
343
        Sorry, your browser can't play audio files.
Line 482... Line 482...
482
             {<span class="oef_indneutral">\a</span> -}
482
             {<span class="oef_indneutral">\a</span> -}
483
           }
483
           }
484
         \if{\answer_given=yes}{
484
         \if{\answer_given=yes}{
485
           \if{\TEST[\h;2]>0 and \TEST[\h;3]=0}
485
           \if{\TEST[\h;2]>0 and \TEST[\h;3]=0}
486
              {\incomplete_answer_text
486
              {\incomplete_answer_text
487
               \if{\givegood>0}{<br /> <span class="prompt">\qcm_prompt2</span>
487
               \if{\givegood>0}{<br> <span class="prompt">\qcm_prompt2</span>
488
                  <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>}
488
                  <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>}
489
              }
489
              }
490
           \if{\TEST[\h;3]>0}
490
           \if{\TEST[\h;3]>0}
491
             {\bad_answer_text
491
             {\bad_answer_text
492
              \if{\givegood>0}{
492
              \if{\givegood>0}{
493
                 <br /> <span class="prompt">\qcm_prompt2</span>
493
                 <br> <span class="prompt">\qcm_prompt2</span>
494
                 <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>}
494
                 <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>}
495
             }
495
             }
496
           \if{\TEST[\h;3]=0 and \TEST[\h;2]=0}
496
           \if{\TEST[\h;3]=0 and \TEST[\h;2]=0}
497
             {\good_answer_text}
497
             {\good_answer_text}
498
            }
498
            }