Template:Solution: Difference between revisions

From Math Puzzle Wiki
Jump to navigation Jump to search
Oscarlevin (talk | contribs)
No edit summary
Oscarlevin (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This is the template to be used when providing solutions.  To use the template, you would type the following:
<includeonly><div class="nomobile"><div class="mw-collapsible mw-collapsed" style="text-align:left; border: 1px solid #aaaaaa; padding:4px; margin-bottom:1ex;"><div style="background-color:#E0F5FF; padding-left:4px;"><b>Solution</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 solutions.  To use the template, you would type the following:


  <nowiki>{{Solution | solution goes here }}</nowiki>
  <nowiki>{{Solution | solution goes here }}</nowiki>
Line 9: Line 10:


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.
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.
</noinclude> 


<includeonly>
See also [[Template:Hint]] and [[Template:Answer]] for including hints or answers with similar results.
<div class="NavFrame collapsed" style="text-align:left">
</noinclude>
<div class="NavHead" style="padding-left:1ex; background-color:#E0F5FF">Solution</div>
<div class="NavContent" style="padding: 4px;"> {{{1}}}
</div>
</div>
</includeonly>

Current revision as of 18:31, 14 July 2013

This is the template to be used when providing solutions. To use the template, you would type the following:

{{Solution | solution goes here }}

The advantage to this is that any text places where "solution goes here" occurs will be hidden when a user first views the page. This should help users avoid spoilers.

The results look like this:

Solution
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:Answer for including hints or answers with similar results.