Template:Endspoiler: Difference between revisions

Jump to navigation Jump to search
(Created page with "<includeonly>{{#if:{{{1|}}}|<div class="container" style="padding-top:4px;" id="endspoiler{{{1}}}">|<div class="container" style="padding-top:4px;" id="endspoiler1">}} :30px|link=Guidelines:Spoilers <div style="display:inline-block; vertical-align:middle;">'''End of spoilers.'''</div></div></includeonly><noinclude> {{Documentation}} Category:Text Formatting Templates </noinclude>")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<div class="container" style="padding-top:4px;" id="endspoiler{{{1}}}">|<div class="container" style="padding-top:4px;" id="endspoiler1">}}
<includeonly>{{#if:{{{1|}}}|<div class="container" style="padding-top:4px;" id="endspoiler{{{1}}}">|<div class="container" style="padding-top:4px;" id="endspoiler1">}}
:[[File:Spoiler Icon.png|30px|link=Guidelines:Spoilers]] <div style="display:inline-block; vertical-align:middle;">'''End of spoilers.'''</div></div></includeonly><noinclude>
:[[File:Spoiler Icon.png|30px|link=Guidelines:Spoilers]] <div style="display:inline-block; vertical-align:middle;">'''End of spoilers.'''</div></div></includeonly><noinclude>
{{Documentation}}
{{Template:Startspoiler/Documentation}}
[[Category:Text Formatting Templates]]
[[Category:Text Formatting Templates]]
</noinclude>
</noinclude>

Latest revision as of 19:31, 21 October 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:Endspoiler. It should be transcluded onto the template page.