Difference between revisions of "Template:Spoiler/doc"

From Dragon Quest Wiki
m
m (→‎Code: ok lol but i'm removing that)
 
(3 intermediate revisions by one other user not shown)
Line 22: Line 22:
<pre>
<pre>
{{spoiler|start}}
{{spoiler|start}}
This is spoiler information. OMGz!
Spoiler text goes here.
{{spoiler|end}}
{{spoiler|end}}
</pre>
</pre>

Latest revision as of 21:35, 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}}