Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
No edit summary
No edit summary
Line 7: Line 7:
| 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">
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.'''
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.'''
</div><div class="spoiler" style="height:200px;">
</div><div class="spoiler">
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Revision as of 00:54, 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

Spoiler warning: Plot and/or ending details follow.

This is spoiler information. OMGz!


Code

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