Template:Answer: Difference between revisions
Jump to navigation
Jump to search
Oscarlevin (talk | contribs) No edit summary |
Oscarlevin (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<div class="NavFrame collapsed" style="text-align:left"> | <includeonly><div class="NavFrame collapsed" style="text-align:left"> | ||
<div class="NavHead" style="padding-left:1ex; background-color:#DBDBFF">Answer</div> | <div class="NavHead" style="padding-left:1ex; background-color:#DBDBFF">Answer</div> | ||
<div class="NavContent" style="padding: 4px;"> {{{1}}} | <div class="NavContent" style="padding: 4px;"> {{{1}}} | ||
</div> | </div> | ||
</div> | </div></includeonly> | ||
<noinclude>This is the template to be used when providing answers. To use the template, you would type the following: | |||
<nowiki>{{Answer | answer goes here }}</nowiki> | |||
The advantage to this is that any text places where "answer goes here" occurs will be hidden when a user first views the page. This should help users avoid spoilers. | |||
The results look like this: | |||
{{Answer | This is the solution}} | |||
Note, the use of the equals sign outside of math mode will cause errors. To prevent this, use math mode or use <nowiki>{{=}}</nowiki> instead. | |||
See also [[Template:Hint]] and [[Template:Solution]] for including hints or answers with similar results. | |||
</noinclude> |
Revision as of 13:32, 6 July 2013
This is the template to be used when providing answers. To use the template, you would type the following:
{{Answer | answer goes here }}
The advantage to this is that any text places where "answer goes here" occurs will be hidden when a user first views the page. This should help users avoid spoilers.
The results look like this:
Answer
This is the solution
Note, the use of the equals sign outside of math mode will cause errors. To prevent this, use math mode or use {{=}} instead.
See also Template:Hint and Template:Solution for including hints or answers with similar results.