Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
m (changing category)
m (more eyegrabbing)
 
(18 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{{{PAGENAME}}/doc}}
{{{{PAGENAME}}/doc}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
[[Category:Notice templates|{{PAGENAME}}]]
</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></div>
| start = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">
| start = <div class="toccolours mw-collapsible mw-collapsed" style=" overflow: hidden;">'''''Warning: Spoilers!'''''<br/>Click expand to view content<!-- overflow: hidden; due to the float here --><div class="mw-collapsible-content">
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.'''
</div>
| #default = <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.'''
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Latest revision as of 21:34, 18 April 2020

The spoiler template is used to mark sections of an article which might contain spoiler information.

Usage[edit]

This template should be called in pairs. One call before spoiler information starts, and one after.

Start[edit]

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[edit]

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[edit]

Sample[edit]

Warning: Spoilers!
Click expand to view content

This is spoiler information. OMGz!


Code[edit]

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