Rev 11271 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3300 | bpr | 1 | :signification |
5872 | bpr | 2 | <p> |
5903 | bpr | 3 | La méthode spéciale <span class="tt wims_code_words">help</span> accepte deux paramètres. Le premier est un identificateur |
10950 | bpr | 4 | qui sera dans la variable <span class="tt wims_code_variable">\help_subject</span> |
5903 | bpr | 5 | à l'intérieur de la commande <span class="tt wims_code_words">\help</span> |
3299 | bpr | 6 | et le second est le texte du lien. |
6372 | bpr | 7 | La classe css du lien est <span class="tt wims_code_words">oef_specialhelp</span> et peut être configurée. |
8 | |||
10950 | bpr | 9 | Si <span class="tt wims_code_words">\special{help}</span> est mis dans l'énoncé ou le feedback d'un exercice, |
3299 | bpr | 10 | l'aide sera de type popup, contrairement à l'aide usuelle. |
11 | |||
10950 | bpr | 12 | Tout le contenu de l'aide doit être mis dans le source de l'exercice oef. |
3299 | bpr | 13 | Aucune facilité n'est prévue pour l'aide au niveau du module, car le principe |
14 | est que l'indépendance des fichiers oef n e doit pas être détruit par les aides. |
||
15 | Cependant, si vous avez plusieurs exercices partageant les mêmes textes d'aide |
||
16 | vous pouvez utiliser cpp. |
||
5872 | bpr | 17 | </p> |
3300 | bpr | 18 | :example |
12275 | obado | 19 | <div class="wims_help_bloc example"> |
20 | <h2>Exemples</h2> |
||
10950 | bpr | 21 | |
22 | <div> |
||
12275 | obado | 23 | <textarea id="wims_show81" cols="100" rows="14" readonly="readonly"> |
3299 | bpr | 24 | \title{Deviner} |
8867 | bpr | 25 | \statement{ Deviner un mot : |
3299 | bpr | 26 | \special{help test1,Premier indice} |
27 | } |
||
10950 | bpr | 28 | \answer{}{Singe} |
3299 | bpr | 29 | \help{ |
10950 | bpr | 30 | \if{\help_subject issametext }{ |
31 | Cliquer sur le bouton à l'intérieur de l'énoncé pour voir le premier indice. |
||
32 | } |
||
33 | \if{\help_subject issametext test1}{ |
||
34 | L'indice est S. |
||
35 | } |
||
36 | } |
||
37 | </textarea> |
||
38 | </div> |
||
39 | |||
40 | |||
41 | Voici un exemple d'aides imbriquées. |
||
42 | <div> |
||
12275 | obado | 43 | <textarea id="wims_show82" cols="100" rows="22" readonly="readonly"> |
10950 | bpr | 44 | \title{Deviner} |
45 | \statement{ Deviner un mot : |
||
46 | \special{help test1,Premier indice} |
||
47 | } |
||
48 | \answer{}{Singe} |
||
49 | \help{ |
||
3299 | bpr | 50 | Voici l'aide: help subject=\help_subject |
10950 | bpr | 51 | \if{\help_subject issametext}{ |
3299 | bpr | 52 | \special{help test0,ici} |
53 | } |
||
54 | \if{\help_subject issametext test1}{ |
||
11271 | bpr | 55 | La première lettre est <span class="wims_emph">S</span>. Vous pouvez trouver un nouvel indice |
3299 | bpr | 56 | \special{help test2,ici} |
57 | } |
||
10950 | bpr | 58 | \if{\help_subject issametext test2}{Voici le second indice. |
11271 | bpr | 59 | La deuxième lettre est <span class="wims_emph">i</span> |
3299 | bpr | 60 | } |
61 | \if{\help_subject issametext test0}{Voici |
||
62 | \special{help test1,l'aide 1}, \special{help test2,l'aide 2} |
||
63 | } |
||
64 | } |
||
5312 | bpr | 65 | </textarea> |
10950 | bpr | 66 | </div> |
12275 | obado | 67 | </div> |