Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = </div>
| end = </div>
| start = <div class="spoilerstart" style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">
| start = <div class="spoilerstart" style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd"></div><div class="spoiler">
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.'''
</div><div class="spoiler">
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Revision as of 04:55, 20 October 2011

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

This is spoiler information. OMGz!


Code

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