Difference between revisions of "Template:Showhide"

From CWCki
Jump to navigation Jump to search
m
m
Line 4: Line 4:
<div class="NavHead" style="background: {{{bgcolor|#E5E6C8}}}; text-align: center; padding: 1px; font-size:100%;">
<div class="NavHead" style="background: {{{bgcolor|#E5E6C8}}}; text-align: center; padding: 1px; font-size:100%;">
'''{{{title|Click here to see more}}}'''</div>
'''{{{title|Click here to see more}}}'''</div>
<div class="NavContent" style="display:none; font-size:normal; text-align:left">
<div class="NavContent" style="display:none; font-size:normal; text-align:left">
<!---The code above forms the show/hide box --->
<!---The code above forms the show/hide box --->
{{{content}}}
{{{content}}} </div></div></div><noinclude>{{usage|1= This template can be used to hide content from view until the reader clicks the show button. This can be useful to prevent excessively long or less important content being visible at first, to help keep an article from appearing messy. The format for using this template is as follows:<br />
 
</div></div></div><noinclude>{{usage|1= This template can be used to hide content from view until the reader clicks the show button. This can be useful to prevent excessively long or less important content being visible at first, to help keep an article from appearing messy. The format for using this template is as follows:<br />


'''<nowiki>{{</nowiki>Showhide'''<br />
'''<nowiki>{{</nowiki>Showhide'''<br />

Revision as of 06:33, 17 September 2010

Usage

These usage notes will not be included in articles bearing this template.

This template can be used to hide content from view until the reader clicks the show button. This can be useful to prevent excessively long or less important content being visible at first, to help keep an article from appearing messy. The format for using this template is as follows:

{{Showhide
|width = 450px (Also accepts %)
|bgcolor = #7AA9DD
|title = Show me moar
|content = This content be hidden yo }}

The above code would produce: