Template:Quiz/doc
Appearance
This is a documentation subpage for Template:Quiz It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]A 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 source]- 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
[edit source]A 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...