Template:Collapseobject
From Encyclopedia Dramatica
(Redirected from Template:Co)
This is the collapsing object template. See Encyclopedia Dramatica:Collapsing Objects for an explanation.
Usage
{{collapseobject| 1 | 2 | 3 | 4 }}
1 | 2 | 3 | 4 |
---|---|---|---|
A unique text id | Text for "hide content" link | Text for "expand content" link | Initial state of collapsing content. Enter anything to cause collapsing content to be visible initially. 1 = visible, 0 = hidden |
{{collapseobject| 1 | 2 | 3 | 4 | 5 | 6 }}
5 | 6 |
---|---|
Hidden content | css for hidden content. Do not include style=" " |
Example
Visible: {{collapseobject|vis|-|+|1|This is content is visible.|background-color:red;color:white;}} Hidden: {{collapseobject|hid|-|+|0|This is content hidden.|background-color:blue;color:white;}} The last two arguments are omitted: {{collapseobject|ex|-|+|1}} <div id="mw-customcollapsible-ex" class="mw-collapsible" style="font-size:25pt;"> The last two arguments are omitted. </div>
Output
Visible: [-]
This is content is visible.
Hidden: [+]
This is content hidden.
The last two arguments are omitted: [-]
The last two arguments are omitted.