Difference between revisions of "Template:Showhide"

From CWCki
Jump to navigation Jump to search
m (Finish)
m
Line 12: Line 12:


'''<nowiki>{{</nowiki>Showhide'''<br />
'''<nowiki>{{</nowiki>Showhide'''<br />
'''{{!}}width'''  = 450px/%<br />
'''{{!}}width'''  = 450px ''<small>(Also accepts %)</small>''<br />
'''{{!}}bgcolor''' = #7AA9DD/red<br />
'''{{!}}bgcolor''' = #7AA9DD<br />
'''{{!}}title'''  = Show me moar<br />
'''{{!}}title'''  = Show me moar<br />
'''{{!}}content''' = This content be hidden yo
'''{{!}}content''' = This content be hidden yo

Revision as of 20:10, 1 May 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: