Template:Collapsible

This template displays a link that can be used to make collapsible information using a script we stole from ED.

It degrades cleanly with JS disabled.

Contents

Parameters

Examples

Example 1

{{collapsible
|text=SPOILER
|id=spoiler
|initialstate=1
}}
<strong id="spoiler">YOU DIES</strong>

SPOILER

YOU DIES

Example 2

{{collapsible
|collapse=[hide]
|expand=[show]
|id=andiwanttodie
}}
<div id="ihatemyself">I hate myself</div>
<div id="andiwanttodie">And I want to die</div>

I hate myself
And I want to die

Note: With javascript turned off, both lines are visible by default, and no [show]/[hide] link is shown.

Hints

tanasinn.info archive