Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
m (more eyegrabbing)
 
(148 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<pre>{{Spoiler|Hidden Text}}</pre> gets you this:
{{{{PAGENAME}}/doc}}
{{Spoiler|Hidden Text}}
[[Category:Templates|{{PAGENAME}}]]
<pre>{{Spoiler|Green Hidden Text|00FF00}}</pre> gets you this:
</noinclude><onlyinclude><includeonly>
{{Spoiler|Green Hidden Text|00FF00}}</noinclude>
{{ #switch: {{{1}}}  
<includeonly><span title="highlight to see spoilers" style="background-color:#{{{2|000000}}}; color:#{{{2|000000}}}">{{{1}}}</span></includeonly>
| end = </div></div>
| 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">
}}</includeonly></onlyinclude>

Latest revision as of 01:34, 19 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}}