Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
(reverting to a simpler spoiler template, using show/hide is just too complicated)
mNo edit summary
Line 5: Line 5:
</noinclude><onlyinclude><includeonly>
</noinclude><onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">'''Spoilers end here'''</div>
| end = <div 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 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.'''

Revision as of 05:23, 21 October 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.

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}}