Thread:War Pig1237/@comment-5672886-20160630095009/@comment-25101690-20160630105207

You are looking for Collapsibles.

You can make any content collapsible by wrapping it in the code: YOUR CONTENT This will produce this result:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

You can make it collapsed by default by adding the "mw-collapsed" class like this: YOUR CONTENT

If you don't like the default "[Expand]" button, you can change that too! But here it gets slightly more complicated. Create anything that you want to use as button, then wrap it in: YOUR BUTTON Replace the ID with any word that you use to refer to your collapsible element. Clicking the button will show/hide all elements with that ID. Add your content like this: YOUR CONTENT Use the same ID as before.

Here is the whole thing in action (with a heavily stylised button):

Show/Hide Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Delving deeper into collapsibles allows to do much more, up to things like my wikicode game.