« Modèle:Question à choix multiple » : différence entre les versions
(Ajout classe CSS) |
(Ajout paramètre image_question et image_explication) |
||
Ligne 41 : | Ligne 41 : | ||
}); | }); | ||
</script></html></div><includeonly>{{Boîte|classe=multiple-choice-question question noprint|style=margin-top: 10px;|contenu= | </script></html></div><includeonly>{{Boîte|classe=multiple-choice-question question noprint|style=margin-top: 10px;|contenu= | ||
<span class="question-number"></span>'''{{{question|Veuillez saisir une question}}}''' | <span class="question-number"></span>'''{{{question|Veuillez saisir une question}}}'''{{#if:{{{image_question|}}}|<br>[[Fichier:{{{image_question}}}|400px]]|}} | ||
<ol class="multiple-choice-question-choices" type="A"> | <ol class="multiple-choice-question-choices" type="A"> | ||
<li>{{{a|Choix A}}}</li> | <li>{{{a|Choix A}}}</li> | ||
Ligne 51 : | Ligne 51 : | ||
{{#if:{{{g|}}}|<li>{{{g}}}</li>|}}</ol><div style="margin-left:25px" class="multiple-choice-question-answer"><span class="multiple-choice-question-answer-letter" style="font-size: 20px; text-transform: uppercase; font-weight: bold;">{{{réponse}}}</span> | {{#if:{{{g|}}}|<li>{{{g}}}</li>|}}</ol><div style="margin-left:25px" class="multiple-choice-question-answer"><span class="multiple-choice-question-answer-letter" style="font-size: 20px; text-transform: uppercase; font-weight: bold;">{{{réponse}}}</span> | ||
{{#if:{{{explication|}}}|<div style="border:1px solid #aaaaaa; margin: 10px; padding: 10px"> | {{#if:{{{explication|}}}|<div style="border:1px solid #aaaaaa; margin: 10px; padding: 10px"> | ||
{{{explication}}}</div>|}} | {{{explication}}}</div>|}}{{#if:{{{image_explication|}}}|<br>[[Fichier:{{{image_explication}}}|400px]]|}} | ||
</div> | </div> | ||
<div style="text-align: right;"><span class="multiple-choice-question-see-answer">Voir</span> | <div style="text-align: right;"><span class="multiple-choice-question-see-answer">Voir</span> | ||
Ligne 71 : | Ligne 71 : | ||
|d= 4 | |d= 4 | ||
|e= 5 | |e= 5 | ||
| | |image_explication=Girafe.jpeg | ||
|explication= La [https://fr.wikipedia.org/wiki/Girafe girafe] est un mammifère quadrupède et elle possède donc 4 pattes. Voici d'autres exemples de mammifères à 4 pattes: | |||
* [https://fr.wikipedia.org/wiki/Rhinoc%C3%A9ros rhinocéros] | * [https://fr.wikipedia.org/wiki/Rhinoc%C3%A9ros rhinocéros] | ||
* [https://fr.wikipedia.org/wiki/%C3%89l%C3%A9phant éléphant] | * [https://fr.wikipedia.org/wiki/%C3%89l%C3%A9phant éléphant] | ||
Ligne 144 : | Ligne 145 : | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
}, | |||
"image_question": { | |||
"label": "Image question", | |||
"description": "Une image à associer avec la question.", | |||
"type": "wiki-file-name" | |||
}, | |||
"image_explication": { | |||
"label": "Image explication", | |||
"description": "Une image associée à l'explication.", | |||
"type": "wiki-file-name" | |||
} | } | ||
}, | }, |
Version du 9 mai 2017 à 11:07
Exemple
Utilisation
Question au format choix multiples. Pour le format Flashcard, voir Modèle:Flashcard.
Paramètre | Description | Type | État | |
---|---|---|---|---|
Question | question | La question à poser.
| Contenu | obligatoire |
A | a | Le choix A. | Chaîne | obligatoire |
B | b | Le choix B. | Chaîne | obligatoire |
C | c | Le choix C. | Chaîne | suggéré |
D | d | Le choix D. | Chaîne | suggéré |
E | e | Le choix E. | Chaîne | suggéré |
F | f | Le choix F. | Chaîne | suggéré |
G | g | Le choix G. | Chaîne | suggéré |
Explication | explication | Une explication de la bonne réponse à la question.
| Contenu | suggéré |
Réponse | réponse | La réponse à la question (lettre minuscule).
| Contenu | obligatoire |
Image question | image_question | Une image à associer avec la question. | Fichier | facultatif |
Image explication | image_explication | Une image associée à l'explication. | Fichier | facultatif |