Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
m (more eyegrabbing)
 
(131 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
For documentation on this template, see [[Template:Spoiler/doc]].
{{{{PAGENAME}}/doc}}
[[Category:Templates|Spoilers]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude><onlyinclude><includeonly>
</noinclude><onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| end = {{{!}} cellspacing="0" cellpadding="5" align="center" style="width:100%; background-color:#FF1A1A; border: solid 1px #000000; margin-top: 10px; margin-bottom:10px;"
| end = </div></div>
{{!}} [[Image:Hork.gif2|10px]]
| 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">
{{!}} align="center" {{!}} '''Thou Hast Defeated the Spoiler.'''<br /> You may now return to reading as recklessly as you please without fear of consequences.
{{!}}}
}}</includeonly></onlyinclude>
| start = {{{!}} cellspacing="0" cellpadding="5" align="center" style="width:100%; background-color:#FF1A1A; border: solid 1px #000000; margin-top:10px; margin-bottom:10px;"
{{!}} [[Image:Hork.gif2|10px]]
{{!}} align="center" {{!}} '''A Spoiler Draws Near!'''<br /> The following may contain story relevant information that can prove harmful to the gaming experience of the reader. Beware the dangers.
{{!}}} }}</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}}