Template:Question-answer

From Wikibooks, open books for an open world
Jump to: navigation, search
(This lesson is incomplete. Click "edit" to provide an example.)

When you find the answer, you can add it here by clicking "edit".

This template helps editors create exercises for readers. The definition is:

{{dynamic navigation
|titlestyle=text-align:left;
|title = {{{question|(This lesson is incomplete. Click "edit" to provide an example.)}}}
|body = {{{answer|<small>When you find the answer, you can add it here by clicking "edit".</small>}}}
}}

Here is an example:

{{Question-answer|question=Who am I?|answer=the Question-answer template}}

This results in:

Who am I?

the Question-answer template