Template:Collapse top/doc: Difference between revisions

Jump to navigation Jump to search
expand feature not documented (and needs to be fixed anyway)
w:en>Amalthea
m (→‎Around header text: fix, per talk page)
w:en>SMcCandlish
(expand feature not documented (and needs to be fixed anyway))
Line 5: Line 5:
The Collapse template is used for placing collapse boxes around discussions.
The Collapse template is used for placing collapse boxes around discussions.


=== Usage ===
== Usage ==


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


==== bg parameter ====
=== 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 27: Line 27:
{{cob}}
{{cob}}


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


==== Around header text ====
=== Around header text ===


When used with a section of text, include the section header in the collapsed portion of text. For example, given:
When used with a section of text, include the section header in the collapsed portion of text. For example, given:
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}}}}


=== Redirects ===
===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.


== Redirects ==
* {{Tl|DAT}}
* {{Tl|DAT}}


=== See also ===
== See also ==
 
* {{Tl|collapse bottom}}
* {{Tl|collapse bottom}}
* {{Tl|collapse}}
* {{Tl|collapse}}
Anonymous user

Navigation menu