Template:Startspoiler: Difference between revisions

Jump to navigation Jump to search
(Created page with "<includeonly><div class="container" style="padding-top:4px;"> :30px|link=Guidelines:Spoilers <div style="display:inline-block; vertical-align:middle;">'''This section contains spoilers.''' ('''''[[{{FULLPAGENAME}}#{{#if:{{{1|}}}|endspoiler{{{1}}}|endspoiler1}}|Skip Section]]''''')</div> </div></includeonly><noinclude> {{Documentation}} Category:Text Formatting Templates </noinclude>")
 
m (Protected "Template:Startspoiler" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 18:00, 26 July 2023

Purpose

Template:Startspoiler and Template:Endspoiler are paired spoiler templates that, when used together, marks certain sections or paragraphs in a page as containing spoilers. Startspoiler also allows users to scroll right past the spoilery content (to the beginning of Endspoiler) by clicking or tapping on "Skip Section". These templates should be used whenever a section covers highly spoilery information about a subject.

If a page has multiple sections covering spoilers that would necessitate the need for multiple uses of these templates, then each template pair must be assigned a number parameter. I.e. {{Startspoiler|1}}{{Endspoiler|1}}.

Usage

Code

{{Startspoiler}}
Section or paragraph(s) covering spoilers here.
{{Endspoiler}}

Multiple uses of the template

{{Startspoiler|1}}
First section.
{{Endspoiler|1}}

{{Startspoiler|2}}
Second section.
{{Endspoiler|2}}


This is the template documentation page for Template:Startspoiler. It should be transcluded onto the template page.