Template:Collapse top/doc: Difference between revisions

tidy
w:en>Ikip
w:en>Thumperward
(tidy)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
==Usage==
{{shortcut|Template:Cot|Template:Cob}}
{{shortcut|Template:Cot|Template:Cob}}
The Collapse template is used for placing collapse boxes around discussions.
=== 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.'''''
The Collapse template is used for placing collapse boxes around discussions, as follows:


{{Tlp|Collapse top|Optional text|bg|padding}}
{{Tlp|Collapse top|Optional text|bg|padding}}
Line 14: 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 25: Line 27:
{{cob}}
{{cob}}


===padding parameter===
==== 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 36: Line 38:


{{Divbox|tt|Changed to|{{Tlsp|Collapse|[[Help:Section|Heading]]|}}<br />{{Lorem ipsum}}<br />{{Tlsp|Collapse bottom}}}}
{{Divbox|tt|Changed to|{{Tlsp|Collapse|[[Help:Section|Heading]]|}}<br />{{Lorem ipsum}}<br />{{Tlsp|Collapse bottom}}}}
 
== See also ==
=== Redirects ===
* {{Tl|Collapse bottom}}
 
* {{Tl|Collapse}}
* {{Tl|DAT}}
* The template {{Tl|DAT}} is a redirect to this template.
 
=== See also ===
 
* {{Tl|collapse bottom}}
* {{Tl|collapse}}
* {{tl|discussion top}}
* {{tl|archive top}}
* {{tl|hidden archive top}}


<includeonly>
<includeonly>
Anonymous user