Difference between revisions of "Template:Spoiler"

From Dragon Quest Wiki
Line 5: Line 5:
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = </div></div>
| end = </div></div>
| start = <div class="toccolours mw-collapsible mw-collapsed" style=" overflow: hidden;">Warning: Spoilers<!-- overflow: hidden; due to the float here --><div class="mw-collapsible-content">
| start = <div class="toccolours mw-collapsible mw-collapsed" style=" overflow: hidden;">Warning: Spoilers<br/>Click expand to view content<!-- overflow: hidden; due to the float here --><div class="mw-collapsible-content">
   
   
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Revision as of 15:49, 27 December 2013

The spoiler template is used to mark sections of an article which might contain spoiler information.

Usage

This template should be called in pairs. One call before spoiler information starts, and one after.

Start

A spoiler start should be the first invocation of the template.

{{spoiler|start}}
  • start: A required parameter which marks a section as the start of a spoiler.

End

A spoiler end should be the second invocation of the template.

{{spoiler|end}}
  • end: A required parameter which marks a section as the end of a spoiler.

Example

Sample

Warning: Spoilers
Click expand to view content

This is spoiler information. OMGz!


Code

{{spoiler|start}}
Spoiler text goes here.
{{spoiler|end}}