Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
m (moved Template:Spoilers to Template:Spoiler: consolidating with endspoilers)
m (more eyegrabbing)
 
(144 intermediate revisions by one other user not shown)
Line 1: Line 1:
{|cellspacing="0" cellpadding="5" align="center" style="background-color:#807000; border: solid 1px #004000;"
<noinclude>
|[[image:Hork.gif2|center]]
{{{{PAGENAME}}/doc}}
|align="center"|'''<nowiki>A Spoiler Draws Near!</nowiki>'''<br /> The following may contain story relevant information that can prove harmful to the gaming experience of the reader. Beware the dangers.
[[Category:Templates|{{PAGENAME}}]]
|}
</noinclude><onlyinclude><includeonly>
<noinclude><br />
{{ #switch: {{{1}}}
'''To use this template, type <nowiki>{{Spoilers}}</nowiki> on the image information page'''
| end = </div></div>
[[Category:Templates|Spoilers]]
| 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">
</noinclude>
}}</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}}