Template:MC/Collapse
More actions
Template:Documentation header 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.
Parameters
| Parameter | Default | Usage |
|---|---|---|
| head | If set, only makes the head part. | |
| tail | If set, only closes what the head makes. | |
| outerstyle | Custom CSS styling for the container. | |
| 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
Example 1 <syntaxhighlight lang="mediawiki"> Template:Collapse </syntaxhighlight> Produces Template:Collapse
Example 2 <syntaxhighlight lang="mediawiki"> Template:Collapse 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 |
Template:Collapse </syntaxhighlight> Produces Template:Collapse 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 <syntaxhighlight lang=wikitext> Template:Collapse </syntaxhighlight> Produces Template:Collapse
es:Plantilla:Collapse fr:Modèle:Collapse it:Template:Collapse ja:テンプレート:Collapse pt:Predefinição:Collapse ru:Шаблон:Свернуть uk:Шаблон:Згорнути
zh:模板:CollapseIf you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Collapse/doc. (View all subpages of this page.)