Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
m (removing category)
No edit summary
Line 4: Line 4:
</noinclude><onlyinclude><includeonly>
</noinclude><onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">'''<span style="color:red;">Spoilers end here</span>'''</div>
| end = <div class="spoilerend" style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">'''<span style="color:red;">Spoilers end here</span>'''</div>
| start = <div 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>

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

Spoilers end here


Code

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