Template:HiddenText/doc

Description
This template (and its counterpart HiddenTextEnd) open and close a section of page content that remains hidden when the page loads, and requires the reader to toggle a switch for the section to be shown. Unlike the Spoiler* templates, no wikitable is added around the hidden content; When it gets shown, it will have the same style as the normal page text, which makes this template well-suited to hide entire paragraphs.

The template is ultimately based on the "mwcollapsible" class as provided by Wikia. An example of the JavaScript that actually makes it work is shown on the Wikia Developers Wiki.

Syntax
... hidden text (or code) ...

Basic
Simplest variant, to show the default texts.

shows

Simplest variant, to show the default texts.

Advanced
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

... as it looks just like normal following text.)

shows

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

... as it looks just like normal following text.)