Difference between revisions of "Template:Answer"
From Math Puzzle Wiki
Oscarlevin (talk | contribs) |
Oscarlevin (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="nomobile"><div class="mw-collapsible mw-collapsed" style="text-align:left; border: 1px solid #aaaaaa; padding:4px;"> | + | <includeonly><div class="nomobile"><div class="mw-collapsible mw-collapsed" style="text-align:left; border: 1px solid #aaaaaa; padding:4px;"><div style="background-color:#DBDBFF; padding-left:4px;"><b>Answer</b></div><div class="mw-collapsible-content" style="padding: 2px; background-color:#ffffff;">{{{1}}}</div></div></div></includeonly> |
− | <div style="background-color:#DBDBFF; padding-left:4px;"><b>Answer</b></div> | + | |
− | <div class="mw-collapsible-content" style="padding: 2px; background-color:#ffffff;">{{{1}}}</div></div></div></includeonly> | ||
<noinclude>This is the template to be used when providing answers. To use the template, you would type the following: | <noinclude>This is the template to be used when providing answers. To use the template, you would type the following: | ||
Revision as of 19:18, 14 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 answer
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.