Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
FlyingRagnar (talk | contribs) No edit summary |
FlyingRagnar (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
{{ #switch: {{{1}}} | {{ #switch: {{{1}}} | ||
| end = </div></div> | | end = </div></div> | ||
| start = <div class="toccolours mw-collapsible mw-collapsed" style=" overflow: hidden;">Warning: | | start = <div class="toccolours mw-collapsible mw-collapsed" style=" overflow: hidden;">Warning: Spoilers<!-- overflow: hidden; due to the float here --><div class="mw-collapsible-content"> | ||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
Revision as of 18:31, 16 October 2013
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}}