Jump to content

User:Eitch/Main Page/Framed hidden/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:

  • framebg = the color of the background frame (default: transparent)
  • framebordercolor = the color of the frame's border (default: #ccc)
  • header = puts a descriptive line of text above the title
  • titlebg = the color in the background of the title line (default: transparent)
  • bordercolor = the color of the border around the title line (default: transparent)

Parameters for more boxes

You can have up to four boxes within a frame:

CURRENTLY DOES NOT WORK!

Required
  • title2, title3, title4
  • body2, body3, body4
Optional
  • header2, header3, header4
e.g.

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

or

e.g.

{{User:Eitch/Main Page/Hidden2
|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}}

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/Main Page/Hidden2
|This is the title
|This will be shown when you click "show."
}}