Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
</noinclude><onlyinclude><includeonly>
</noinclude><onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = </div>
| end = </div></div>
| start = <div class="toccolours mw-collapsible mw-collapsed">
| start = <div class="toccolours">Warning: Spoilers><div class="mw-collapsible mw-collapsed">
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Revision as of 14:24, 16 October 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|media}}
  • start: A required parameter which marks a section as the start of a spoiler.
  • media: An optional parameter which indicates which media the information might be spoiling.

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>

This is spoiler information. OMGz!


Warning: Spoilers>

This is spoiler information. OMGz!

Code

{{spoiler|start}}
Spoiler text goes here.
{{spoiler|end}}
{{spoiler|start|[[Dragon Quest V]]}}
Spoiler text goes here.
{{spoiler|end}}