Template:Question-answer

From Wikibooks, open books for an open world
Jump to navigation Jump to search
(This lesson is incomplete. Click "edit" to provide an example.)
When you find the answer, you can add it here by clicking "edit".
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      = {{Print version change
    | printonly = <div style="transform:rotate(-180deg);">{{{answer|<small>When you find the answer, you can add it here by clicking "edit".</small>}}}</div>
    | noprint   = {{{answer|<small>When you find the answer, you can add it here by clicking "edit".</small>}}}
  }}
| body       = {{{answer}}}
}}

If the renderer supports it, the answer text will be flipped in print.

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
the Question-answer template