Template:Spoiler: Difference between revisions

From Post-Self
(Create spoiler template)
 
(Added note about mobile)
 
Line 10: Line 10:


<pre><nowiki>Here is a spoiler: {{Spoiler|This text is super scary!}} and text after.</nowiki></pre>
<pre><nowiki>Here is a spoiler: {{Spoiler|This text is super scary!}} and text after.</nowiki></pre>
'''Note:''' Spoilers do not work well on mobile. Until that is fixed, try not to use them with any frequency.
<noinclude>
<noinclude>
= Parameters =
= Parameters =
<templatedata>
<templatedata>

Latest revision as of 18:18, 12 June 2024


Usage

Spoilerizes some text for no/low spoiler pages. These pages ought to be marked using the {{No spoilers}} template.

Example

Here is a spoiler: This text is super scary! and text after.

Here is a spoiler: {{Spoiler|This text is super scary!}} and text after.

Note: Spoilers do not work well on mobile. Until that is fixed, try not to use them with any frequency.


Parameters

Hides spoiler text by blurring it, allowing it to be shown on hover/tap.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Spoiler text1

Any text that needs to be spoilered

Example
Rosebud was his sled.
Linerequired