Template:Collapse top/doc: Difference between revisions
Jump to navigation
Jump to search
w:en>Harej (+padding) |
w:en>Ohms law (Copy edited) |
||
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== | |||
'''''Note: {{Tl|Collapse top}} and {{Tl|Collapse bottom}} need to be substed in order for the time stamp functionality to work properly.''''' | |||
{{Collapse top| | |||
The Collapse template is used for placing collapse boxes around discussions, as follows: | |||
{{Collapse | {{Tlp|Collapse top|Optional text|bg|padding}} | ||
<span style="background:lightyellow;">DISCUSSION</span> | |||
{{Tl|Collapse bottom}} | |||
===bg parameter=== | |||
The bg parameter is Optional. It changes the background color. use [[Web color]] values (e.g. #98FB98). | |||
===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: | |||
{{Divbox|green|Example text|== [[Help:Section|Heading]] ==<br />{{Lorem ipsum}}}} | |||
Replace with: | |||
* {{ | {{Divbox|tt|Changed to|{{Tlsp|Collapse|[[Help:Section|Heading]]|}}<br />{{Lorem ipsum}}<br />{{Tlsp|Collapse bottom}}}} | ||
== See also == | |||
* {{Tl|Collapse bottom}} | |||
* {{Tl|Collapse}} | |||
* The template {{Tl|DAT}} is a redirect to this template. | |||
<includeonly> | <includeonly> |
Revision as of 18:11, 6 August 2009
{{#invoke:Message box|ombox}}
Usage
Note: {{Collapse top}} and {{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:
DISCUSSION
{{Collapse bottom}}
bg parameter
The bg parameter is Optional. It changes the background color. use Web color values (e.g. #98FB98).
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: Template:Divbox
Replace with:
See also
- {{Collapse bottom}}
- {{Collapse}}
- The template {{DAT}} is a redirect to this template.