Rev 13477 | Rev 13705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13477 | Rev 13704 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | :Classify objects according to their properties, drag-and-drop. |
4 | :Classify objects according to their properties, drag-and-drop. |
5 | 5 | ||
6 | The exercise presents a list of items to be classified |
6 | The exercise presents a list of items to be classified |
7 | according to their properties. Drag each item beside the corresponding property. |
7 | according to their properties. Drag each item beside the corresponding property. |
8 | <p> |
8 | <p> |
9 | To make an exercise with this model, |
9 | To make an exercise with this model, |
10 | items and their properties. |
10 | type the list of items and their properties. |
11 | <p> |
11 | </p><p> |
12 | With a slight modification, a variant of this model can accept images as items. |
12 | With a slight modification, a variant of this model can accept images as items. |
13 | <p class="wims_credits"> |
13 | </p><p class="wims_credits"> |
14 | Author of the model: Gang Xiao <qualite@wimsedu.info> |
14 | Author of the model: Gang Xiao <qualite@wimsedu.info></p> |
15 | 15 | ||
16 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
16 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
17 | 17 | ||
18 | Remove the above header if you destroy the model tags i.e the lines starting |
18 | Remove the above header if you destroy the model tags i.e the lines starting |
19 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
19 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
Line 26... | Line 26... | ||
26 | :\credits{} |
26 | :\credits{} |
27 | 27 | ||
28 | :Number of items to classify by exercise: up to 20. |
28 | :Number of items to classify by exercise: up to 20. |
29 | \integer{tot=8} |
29 | \integer{tot=8} |
30 | 30 | ||
31 | : |
31 | :Maximum number of items with the same property |
32 | This number must be greater than 1. |
32 | This number must be greater than 1. |
33 | \integer{max1=4} |
33 | \integer{max1=4} |
34 | - | ||
35 | : Le nombre de propriétés à présenter (par défaut le nombre de propriétés) |
- | |
36 | Si le nombre de propriétés est strictement inférieur au nombre de propriétés, |
- | |
37 | un distracteur sera choisi parmi les propriétés non tirées. |
- | |
38 | \text{prop_cnt=} |
- | |
39 | 34 | ||
40 | :The size of labels to drag, in pixels, x times y. |
35 | :The size of labels to drag, in pixels, x times y. |
41 | Think of people who have to increase the font size of their browsers to see well! Don't make the labels too small! |
36 | Think of people who have to increase the font size of their browsers to see well! Don't make the labels too small! |
42 | \text{size1=100x40} |
37 | \text{size1=100x40} |
43 | 38 | ||
44 | :List of properties: up to 10, separated by commas. |
39 | :List of properties: up to 10, separated by commas. |
45 | \text{prop=Insect,Bird,Mammal} |
40 | \text{prop=Insect,Bird,Mammal} |
- | 41 | ||
- | 42 | :Amount of properties to display (by default the number of properties) |
|
- | 43 | If the amount of properties to display is strictly less than the total number of properties, |
|
- | 44 | a distractor will be chosen from undrawn properties. |
|
- | 45 | \text{prop_cnt=} |
|
46 | 46 | ||
47 | :Main data. |
47 | :Main data. |
48 | Define one item per line, first the name of the item, then the property, |
48 | Define one item per line, first the name of the item, then the property, |
49 | separated by a comma. <p> |
49 | separated by a comma. <p> |
50 | It is best to provide lot of data for each category and at least two items for |
50 | It is best to provide lot of data for each category and at least two items for |
Line 126... | Line 126... | ||
126 | \if{\s > 1}{ |
126 | \if{\s > 1}{ |
127 | \text{second=wims(append item \t[2..\s] to \second)} |
127 | \text{second=wims(append item \t[2..\s] to \second)} |
128 | \text{secondi=wims(append item wims(makelist \i for x=2 to \s) to \secondi)} |
128 | \text{secondi=wims(append item wims(makelist \i for x=2 to \s) to \secondi)} |
129 | } |
129 | } |
130 | } |
130 | } |
131 |
|
131 | # distractor |
132 | \if{\prop_cnt<\pcnt}{ |
132 | \if{\prop_cnt<\pcnt}{ |
133 | \text{t=shuffle(column(1,wims(select \data where column 2 issametext \prop[\prop_cnt+1])))} |
133 | \text{t=shuffle(column(1,wims(select \data where column 2 issametext \prop[\prop_cnt+1])))} |
134 | \integer{s=min(\max1,items(\t))} |
134 | \integer{s=min(\max1,items(\t))} |
135 | \text{dist=wims(append item \t[1] to \dist)} |
135 | \text{dist=wims(append item \t[1] to \dist)} |
136 | \text{disti=wims(append item \i to \disti)} |
136 | \text{disti=wims(append item \i to \disti)} |
Line 167... | Line 167... | ||
167 | \conditions{wims(makelist x for x=1 to \acnt + \distc)} |
167 | \conditions{wims(makelist x for x=1 to \acnt + \distc)} |
168 | 168 | ||
169 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
169 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
170 | 170 | ||
171 | ::This is the command that shows that reply field number 3 for example, is |
171 | ::This is the command that shows that reply field number 3 for example, is |
172 |
|
172 | #\embed{reply 3,\size} <p> |
173 |
|
173 | #And the name of the property number 4, is \prop[4] with the first letter |
174 |
|
174 | #in upper case, or \props[4] in lower case. |
175 | 175 | ||
- | 176 | \statement{ |
|
176 |
|
177 | <div class="instruction">\pre</div> |
177 | \pre |
- | |
178 | </div> |
- | |
179 | <table class="wimsnoborder"> |
178 | <table class="wimsnoborder"> |
180 | \if{vertical iswordof \option}{ |
179 | \if{vertical iswordof \option}{ |
181 | <tr>\for{k=1 to \prop_cnt}{<th>\prop[\k]</th>}</tr> |
180 | <tr>\for{k=1 to \prop_cnt}{<th>\prop[\k]</th>}</tr> |
182 | <tr>\for{k=1 to \prop_cnt}{ |
181 | <tr>\for{k=1 to \prop_cnt}{ |
183 | <td style="text-align:left;vertical-align:top">\embed{reply \k, \sizev}</td>} |
182 | <td style="text-align:left;vertical-align:top">\embed{reply \k, \sizev}</td>} |
Line 189... | Line 188... | ||
189 | <td style="text-align:left">\embed{reply \k, \size}</td> |
188 | <td style="text-align:left">\embed{reply \k, \size}</td> |
190 | </tr> |
189 | </tr> |
191 | } |
190 | } |
192 | } |
191 | } |
193 | </table> |
192 | </table> |
194 | \post |
193 | <div class="post">\post</div> |
195 | } |
194 | } |
196 | 195 | ||
197 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%% |
196 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%% |
198 | 197 | ||
199 | \answer{\prop[1]}{\r1;\all,\dist}{type=dragfill} |
198 | \answer{\prop[1]}{\r1;\all,\dist}{type=dragfill} |