Template:Quiz/doc
This is a documentation subpage for Template:Quiz It contains usage information, categories and other content that is not part of the original template page. |
Usage
editA collapsible quiz question box based on the question-answer and riddle templates helps editors create exercises for readers. This template includes a few things, however, not included on those templates, including bolded titles and defined answer parameters.
Parameters
edit- width
- Width of the "box". Defaults to 100%.
- question
- The question you want to ask. This will be in bold.
- a
- Answer choice "A:"
- b
- Answer choice "B:"
- c
- Answer choice "C:"
- d
- Answer choice "D:"
Examples
editA simple example:
{{Quiz|question=What time is it? |a=Game time. |b=Party time. |c=Time to get a watch. |d=Who cares? |answer='''D''' is clearly the correct answer, because...}}
renders as:
What time is it?
- A: Game time.
- B: Party time.
- C: Time to get a watch.
- D: Who cares?
Answer: D is clearly the correct answer, because...