Difference between revisions of "Template:Spoiler"

From Nexus Mods Wiki
Jump to: navigation, search
(Created page with "<noinclude> = Usage = Useful for hiding content in a collapsed banner either to compact the page or conceal spoilers. = Parameters = * title = Replaces Spoiler with your own...")
 
m (Example)
 
Line 14: Line 14:
 
<pre>{{Spoiler
 
<pre>{{Spoiler
 
|Spoiler text
 
|Spoiler text
| title = Custom Title
+
| title = Custom Title 250px wide
 
| width = 250px
 
| width = 250px
 
| hidden = N
 
| hidden = N

Latest revision as of 15:55, 13 August 2019

Usage

Useful for hiding content in a collapsed banner either to compact the page or conceal spoilers.

Parameters

  • title = Replaces Spoiler with your own title
  • hidden = Set to "N" to have the content expanded by default.
  • width = Set width of the spoiler.

Example

{{Spoiler|Spoiler text}}


Spoiler

Spoiler text


{{Spoiler
|Spoiler text
| title = Custom Title 250px wide 
| width = 250px
| hidden = N
}}


Custom Title 250px wide

Shown by default