Jump to content

User:Eitch/Main Page/Hidden2/doc

From Wikipedia, the free encyclopedia

This template uses Template:Hidden begin, with a number of parameters already set, to easily make hidden boxes which match the Main Page circa 2007/8.

Required Parameters:

  • title = the title
  • body = the content that's hidden

Optional Parameters:

  • header = puts a descriptive line of text above the title (default: no header)
  • titlebg = the color in the background of the title line (default: transparent)
  • bordercolor = the color of the border around the title line (default: transparent)
e.g.

{{User:Eitch/sandbox3
|title=This is the title
|titlebg=#cccccc
|body=This will be shown when you click "show."
|bordercolor=red}}


This is the title
This will be shown when you click "show."

or

e.g.

{{User:Eitch/sandbox3
|header=Click on the "show" button to the right of the title to display some more text.
|title=This is the title
|titlebg=#cccccc
|body=This will be shown when you click "show."
|bordercolor=red}}
Click on the "show" button to the right of the title to display some more text.
This is the title
This will be shown when you click "show."

Alternatively, you can specify two unnamed parameters. In this case, the first parameter is the title and the second parameter is the body.

e.g.

{{User:Eitch/sandbox3
|This is the title
|This will be shown when you click "show."
}}


This is the title
This will be shown when you click "show."