![]() |
VOOZH | about |
This template collapses some content on JS-enabled browsers. This template is not an alternative for removing irrelevant stuff from a page; it's there for things that are not immediately useful but relevant nevertheless such as data from testing. You can see it as a form of long footnote.
| Parameter | Default | Usage |
|---|---|---|
| head | If set, only makes the head part. | |
| tail | If set, only closes what the head makes. | |
| outerclass | Custom class for the container. | |
| outerstyle | Custom CSS styling for the container. | |
| class | Custom class for the collapsed part. | |
| style | Custom CSS styling for the collapsed part. | |
| title | The title to always display above the collapsed content. Not bolded, so you may want to do that yourself. | |
| content | The content to collapse. | |
| expanded | Set to make the content collapsible, but not collapsed by default. | |
| toggle align | inline | How to align the show/hide toggle. Can be left or right to float the toggle, or inline to leave it inline with the title. |
Example 1
{{Collapse |title=Recipe |content= {{Crafting Table |B2= Any Planks |Output= Wooden Button }} }}
Produces
Example 2
{{Collapse |title='''Super boring table''' |style=border:1px black; padding: 0.5em; background: #fafafa |head=1}} Tables have pipe characters in their syntax, which is very bad news for templates. This is why we have this head thing... {|class=wikitable |+ Greatest formula ever |style=font-family:Serif| Entities = magma creeper<sup>2</sup> |} {{Collapse|tail=1}}
Produces
Tables have pipe characters in their syntax, which is very bad news for templates. This is why we have this head thing...
| Entities = magma creeper2 |
Example 3
{{Collapse |title='''Left side button''' |toggle align=left |content=Instead of the button being right side, now it's on the left side! }}
Produces