Difference between revisions of "Template:Divhide/doc"

From blackwiki
Jump to navigation Jump to search
imported>RussBot
m (Robot: moving pages out of redirected category)
imported>Iritscen
m (typo + grammar fixes)
Line 2: Line 2:
  
 
=== Usage ===
 
=== Usage ===
This template will allow you to collapse a section of a page. The first paramater is the title of the collapse section, and the second (optional paramater) is the width. To close the section, use '''<nowiki>{{divhide|end}}</nowiki>'''.
+
This template will allow you to collapse a section of a page. The first parameter is the title of the collapse section, and the second (optional parameter) is the width. To close the section, use '''<nowiki>{{divhide|end}}</nowiki>'''.
  
 
;Examples
 
;Examples
Line 8: Line 8:
 
<pre>
 
<pre>
 
{{divhide|Test}}
 
{{divhide|Test}}
This is the hidden contents.
+
These are the hidden contents.
 
{{divhide|end}}
 
{{divhide|end}}
 
</pre>
 
</pre>
  
 
{{divhide|Test}}
 
{{divhide|Test}}
This is the hidden contents.
+
These are the hidden contents.
 
{{divhide|end}}
 
{{divhide|end}}
  
 
<pre>
 
<pre>
 
{{divhide|Half test|50%}}
 
{{divhide|Half test|50%}}
This is the hidden contents and only takes up 50% of the page.
+
These are the hidden contents, and the box only takes up 50% of the page.
 
{{divhide|end}}
 
{{divhide|end}}
 
</pre>
 
</pre>
  
 
{{divhide|Half Test|50%}}
 
{{divhide|Half Test|50%}}
This is the hidden contents and only takes up 50% of the page.
+
These are the hidden contents, and the box only takes up 50% of the page.
 
{{divhide|end}}
 
{{divhide|end}}
  
You may also use the paramater "show=yes" to show the contents by default.
+
You may also use the parameter "show=yes" to show the contents by default.
  
 
<pre>
 
<pre>

Revision as of 17:34, 23 May 2009

Usage

This template will allow you to collapse a section of a page. The first parameter is the title of the collapse section, and the second (optional parameter) is the width. To close the section, use {{divhide|end}}.

Examples
{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}
Test

These are the hidden contents.

{{divhide|Half test|50%}}
These are the hidden contents, and the box only takes up 50% of the page.
{{divhide|end}}
Half Test

These are the hidden contents, and the box only takes up 50% of the page.

You may also use the parameter "show=yes" to show the contents by default.

{{divhide|Show and test|show=yes}}
This section is shown by default.
{{divhide|end}}
Show and test

This section is shown by default.

See also

  • {{Divbox}} - allows you to create coloured text background