Difference between revisions of "Template:Showhide"

From CWCki
Jump to navigation Jump to search
(Created page with '<!---The code below forms the show/hide box ---> <div class="NavFrame" style="border:none; width:{{{width|100%}}}"> <div class="NavFrame" style="border:none;"> <div class="NavHea…')
 
m (Finish)
Line 9: Line 9:
{{{content}}}
{{{content}}}


</div></div></div><noinclude>{{usage|1= This template is used in the creation of the templates for each day of [[Template:Christory|Christory]]. It helps ensure the formatting of each day template is consistent, which also makes them easier to create and edit. A list of all the day templates can be found on the [[Template:Christory|Christory template]]. 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 />
'''{{!}}width'''  = 100px/%<br />
'''{{!}}width'''  = 450px/%<br />
'''{{!}}bgcolor''' = #FFFFFF/red<br />
'''{{!}}bgcolor''' = #7AA9DD/red<br />
'''{{!}}title'''  = Show me moar<br />
'''{{!}}title'''  = Show me moar<br />
'''{{!}}content''' = The contents to be hidden
'''{{!}}content''' = This content be hidden yo
'''<nowiki>}}</nowiki>'''<br />
'''<nowiki>}}</nowiki>'''<br />


The above code would produce: <br/>
The above code would produce: <br/>
{{Showhide
{{Showhide
|width = 100px/%
|width = 450px
|bgcolor = #FFFFFF/red
|bgcolor = #7AA9DD
|title = Show me moar
|title = Show me moar
|content = The contents to be hidden }}
|content = This content be hidden yo }}
}}
}}
[[Category:CWCki templates]]</noinclude>

Revision as of 20:04, 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/%
|bgcolor = #7AA9DD/red
|title = Show me moar
|content = This content be hidden yo }}

The above code would produce: