Template:Hint: 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
Line 1: Line 1:
<includeonly><div class="mw-collapsible mw-collapsed" style="text-align:left; border: 1px solid #aaaaaa; padding:4px;">
<includeonly><div class="mw-collapsible mw-collapsed" style="text-align:left; border: 1px solid #aaaaaa; padding:100px;">
<div style="background-color:#ddFFe3; padding-left:4px;"><b>Hint</b></div>
<div style="background-color:#ddFFe3; padding-left:4px;"><b>Hint</b></div>
<div class="mw-collapsible-content" style="padding: 2px; background-color:#ffffff;">{{{1}}}</div></div></includeonly>
<div class="mw-collapsible-content" style="padding: 2px; background-color:#ffffff;">{{{1}}}</div></div></includeonly>
Line 9: Line 9:


The results look like this:  
The results look like this:  
{{Hint | This is the Hint}}
{{Hint | This is the Hint}}
{{Hint | A second hint}}


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.

Revision as of 17:57, 14 July 2013

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

{{Hint | hint goes here }}

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

The results look like this:

Hint
This is the Hint


Hint
A second hint


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