Template:Collapse top/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SMcCandlish
(expand feature not documented (and needs to be fixed anyway))
meta>Anypodetos
m (Fix header level)
Line 15: Line 15:
{{Tl|Collapse bottom}}
{{Tl|Collapse bottom}}


=== bg parameter ===
=== The bg parameter ===


The bg parameter is Optional. It changes the background color. use [[Web color]] values (e.g. #F0F2F5).
The bg parameter is Optional. It changes the background color. use [[Web color]] values (e.g. #F0F2F5).
Line 39: Line 39:
{{Divbox|tt|Changed to|{{Tlsp|Collapse top|[[Help:Section|Heading]]|}}<br />{{Lorem ipsum}}<br />{{Tlsp|Collapse bottom}}}}
{{Divbox|tt|Changed to|{{Tlsp|Collapse top|[[Help:Section|Heading]]|}}<br />{{Lorem ipsum}}<br />{{Tlsp|Collapse bottom}}}}


===The expand parameter==
===The expand parameter===
Simply add {{para|expand|yes}} to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link.  Note: {{para|expand|no}} does not work, which is lame; to disable the feature, you have to remove the entire {{para||expand}} parameter and value.
Simply add {{para|expand|yes}} to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link.  Note: {{para|expand|no}} does not work, which is lame; to disable the feature, you have to remove the entire {{para||expand}} parameter and value.



Revision as of 20:13, 11 January 2010

The Collapse template is used for placing collapse boxes around discussions.

Usage

Note: {{Collapse top}} and {{Collapse bottom}} need to be substed in order for the time stamp functionality to work properly.

{{Collapse top|Optional text|bg|padding}}

DISCUSSION

{{Collapse bottom}}

The bg parameter

The bg parameter is Optional. It changes the background color. use Web color values (e.g. #F0F2F5).

Example

{{Collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}} creates:

Extended content

Text here.

The padding parameter

The padding parameter adjusts the amount of cell padding (defaults to 8px)

Around header text

When used with a section of text, include the section header in the collapsed portion of text. For example, given:

Page Template:Divbox/styles.css has no content.

Replace with:

Page Template:Divbox/styles.css has no content.

The expand parameter

Simply add |expand=yes to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link. Note: |expand=no does not work, which is lame; to disable the feature, you have to remove the entire |expand parameter and value.

Redirects

See also