Template:Spoiler/doc: Difference between revisions

Content added Content deleted
(Created page with "Puts text into a clickable-to-reveal spoiler. ==Usage== <pre> {{spoiler | text = [Optional] Inline spoiler text. If omitted, a block spoiler will be created (and should be ended with {{spoiler-end}}.) | label = [Optional] Spoiler label. Default is "Click to reveal" | label-hide = [Optional] Spoiler hide label (for block level spoilers only). Default is "Click to hide" | class = [Optional] CSS class to use for styles. Default is "default" }} </...")
 
mNo edit summary
Line 4: Line 4:
<pre>
<pre>
{{spoiler
{{spoiler
| text = [Optional] Inline spoiler text. If omitted, a block spoiler will be created (and should be ended with {{spoiler-end}}.)
| text = [Optional] Inline text. If omitted, a block spoiler will be created (and should be ended with {{spoiler-end}}.)
| label = [Optional] Spoiler label. Default is "Click to reveal"
| label = [Optional] Spoiler label. Default is "Click to reveal"
| label-hide = [Optional] Spoiler hide label (for block level spoilers only). Default is "Click to hide"
| label-hide = [Optional] Spoiler hide label (for block level spoilers only). Default is "Click to hide"

Revision as of 15:54, 27 April 2022

Puts text into a clickable-to-reveal spoiler.

Usage

 {{spoiler
  | text       = [Optional] Inline text. If omitted, a block spoiler will be created (and should be ended with {{spoiler-end}}.)
  | label      = [Optional] Spoiler label. Default is "Click to reveal"
  | label-hide = [Optional] Spoiler hide label (for block level spoilers only). Default is "Click to hide"
  | class      = [Optional] CSS class to use for styles. Default is "default"
 }}

Examples

This is an Click to revealinline spoiler.

 

THIS IS A BLOCK CONTENT SPOILER.

THIS IS MORE CONTENT

 

THIS IS A BLOCK CONTENT SPOILER.

THIS IS MORE CONTENT

 

THIS IS A NESTED BLOCK LEVEL SPOILER

THIS IS A Click to revealNESTED INLINE SPOILER.