|
This high-risk template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page. You may use editprotected on the talk page to ask for an administrator to make an edit for you.
|
Usage
The typical use of the Collapse template is so that text can be hidden from view until it the box is expanded. There also exist a few options to modify the base box that is utilized by the Dark Brotherhood wiki.
bg
parameter
The bg
parameter is optional parameter that allows the user to change the background color of the header. For the desired color use the appropriate html hex values (e.g. #F0F2F5
).
- Example
{{Collapse|1=Discussion text to be put into box.|bg=#453A6B}}
creates:
Content
|
Discussion text to be put into box.
|
bg2
parameter
By comparison, the bg2
parameter will allow users to modify the background color of the body of the collapsed content. For the desired color use the appropriate html hex values (e.g. #F0F2F5
).
- Example
{{Collapse|1=Discussion text to be put into box.|bg=#453A6B}}
creates:
Content
|
Discussion text to be put into box.
|
The padding
parameter
The padding
parameter adjusts the amount of cell padding (defaults to 8px
):
{{Collapse|1=Discussion text to be put into box.|padding=20px}}
creates the following (expand the box to see the border padding effect):
Content
|
Discussion text to be put into box.
|
The float
parameter
The float
parameter allows the collapsed content to float to the left, right, or center of the page (defaults to none
with width = 100%
):
{{Collapse|1=Discussion text to be put into box.|float=center}}
creates the following:
Content
|
Discussion text to be put into box.
|
{{Collapse|1=Discussion text to be put into box.|float=center|width=30em}}
creates the following:
Content
|
Discussion text to be put into box.
|
{{Collapse|1=Discussion text to be put into box.|float=left|width=30em}}
creates the following:
Content
|
Discussion text to be put into box.
|
{{Collapse|1=Discussion text to be put into box.|float=right|width=30em}}
creates the following:
Content
|
Discussion text to be put into box.
|
{{Collapse|1=Discussion text to be put into box.|float=none|width=30em}}
creates the following:
Content
|
Discussion text to be put into box.
|