Template:Spoiler: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
(reverting)
(43 intermediate revisions by the same user not shown)
Line 8: Line 8:
| start = <div class="collapsible collapsed" style="float:left; width:100%; margin-top:10px; margin-bottom:10px;">  
| start = <div class="collapsible collapsed" style="float:left; width:100%; margin-top:10px; margin-bottom:10px;">  
<div style="border:1px solid black; padding: 5px; text-align:left; background-color:#FF6666;"> A spoiler draws near!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Click 'show' to display, otherwise run away!</div><div>
<div style="border:1px solid black; padding: 5px; text-align:left; background-color:#FF6666;"> A spoiler draws near!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Click 'show' to display, otherwise run away!</div><div>
| #default = <div style="margin-top:10px; margin-bottom:10px;">
| #default = <div style="border:1px solid black; padding: 5px; text-align:left; background-color:#FF6666;"> A spoiler draws near!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not read further if you want to avoid being spoiled!</div>
<div style="border:1px solid black; padding: 5px; text-align:left; background-color:#FF6666;"> A spoiler draws near!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not read further if you want to avoid being spoiled!</div>
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Revision as of 14:34, 6 September 2010

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

Usage

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

Start

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

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

Sample


Code

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