Template:Spoiler/doc: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
No edit summary
Line 2: Line 2:


==Usage==
==Usage==
The majority of the time, this template should be called in pairs.  One call before spoiler information starts, and one after.
This template should be called in pairs.  One call before spoiler information starts, and one after.
===Start===
===Start===
A spoiler start should be the first invocation of the template.
A spoiler start should be the first invocation of the template.
<pre>{{spoiler|start}}</pre>
<pre>{{spoiler|start}}</pre>
*start: A required parameter which marks a section as the start of a spoiler.
*start: A required parameter which marks a section as the start of a spoiler.
*nocollapse: An optional parameter which keeps the spoiler table from being collapsible.  Useful for articles where the whole page would be considered spoilers.
===End===
===End===
A spoiler end should be the second invocation of the template.
A spoiler end should be the second invocation of the template.

Revision as of 03:18, 24 July 2010

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.
  • nocollapse: An optional parameter which keeps the spoiler table from being collapsible. Useful for articles where the whole page would be considered spoilers.

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}}
This is spoiler information.  OMGz!
{{spoiler|end}}