Template:Spoiler/doc

Revision as of 15:52, 27 April 2022 by CoreyPlover (talk | contribs) (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" }} </...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Puts text into a clickable-to-reveal spoiler.

Usage

 {{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"
 }}

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.