Difference between revisions of "Template:Spoiler box/doc"

From Pin Eight
Jump to: navigation, search
(describe template)
 
(be more upfront about reliance on JS)
 
Line 1: Line 1:
This template is used to hide asides until the user wants to show them.
+
This template is used to hide asides until the user wants to show them. It places a JavaScript show/hide control that starts by collapsing the box to its titlebar.
  
 
Arguments:
 
Arguments:
 
;1
 
;1
:Text inside the box, initially hidden but shown when the user activates the show control. If it contains an equal sign, it must start with <code>1=</code>.
+
:Text inside the box, initially hidden but shown when the user activates the show control. If it contains an equal sign, add <code>1=</code> at the beginning
 
;type
 
;type
:Title of the box, appearing over the pink background.
+
:Title of the box, appearing over the pink background. If not provided, the template uses "Spoiler".
  
 
Specializations: {{tl|OOU box}}
 
Specializations: {{tl|OOU box}}
 +
<includeonly><!-- cats go here--></includeonly>

Latest revision as of 02:03, 15 November 2010

This template is used to hide asides until the user wants to show them. It places a JavaScript show/hide control that starts by collapsing the box to its titlebar.

Arguments:

1
Text inside the box, initially hidden but shown when the user activates the show control. If it contains an equal sign, add 1= at the beginning
type
Title of the box, appearing over the pink background. If not provided, the template uses "Spoiler".

Specializations: {{OOU box}}