Template:Hidden begin

Click [expand] to view the content

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Documentation icon Template documentation[view · edit · history · purge ] [translate this template]

Usage edit

Typical usage:

{{Hidden begin|title}}
content to be hidden
{{Hidden end}}

Common named parameters:

{{Hidden begin|title=|expand=|bg1=|fontsize1=|bg2=|fontsize2=}}

All named parameters (showing the default values):

{{Hidden begin
| title     = Click [expand] to view the content
| expand    = 
| border    = 1px solid #AAAAAA
| padding   = 2px
| width     = 100%
| bg1       = #EFEFEF
| fontsize1 = small
| ta1       = left
| extra1    = 
| bg2       = transparent
| fontsize2 = small
| ta2       = left
| extra2    = 
}}

Parameters edit

This template takes the following parameters, all of which are optional

positional parameter 1 or named parameter title
Either of these give the main title of the collapsed box, which occurs on the same line as the [Expand] link and is always visible. It defaults to 'Click show to view the content' (possibly translated into a different language).
expand
If this parameter evaluates to true (i.e. is not empty) it will leave the material initially uncollapsed. The default is to initially collapse the material (hence the name of this template).
border
Style of the border line(s).
padding
Amount of padding to use.
width
Sets the width of the overall box.
bg1
Sets the background color of the title; the default is a light gray. Other colors are available from w:en:List of colors.
fontsize1
Font size of the title.
ta1
Text alignment of the title.
extra1
Additional style settings for the title.
bg2
Background color of the material to be hidden.
fontsize2
Font size of the material to be hidden.
ta2
Text alignment of the material to be hidden.
extra2
Additional style settings for the material to be hidden.

Note: If an entire section is to be hidden, remove the section header and add it as the first parameter of the template. This keeps the section header from showing up in the table of contents.

See also edit