Template:Spoiler: Difference between revisions

From MENACE Official Wiki
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
Use this spoiler tag to hide text until it is revealed by clicking on it. It can then be toggled back on by clicking again.
Use this spoiler tag to hide text until it is revealed by clicking on it. It can then be toggled back on by clicking again.


The spoiler works for text inline and multiple paragraphs. It can hide templates, but once opened, they might not be able to be hidden again.
The spoiler works for inline text and multiple paragraphs. It can hide templates, but once opened, they might not be able to be hidden again.


'''[This currently does not work for MediaWiki files that use the <code>frame</code> or <code>thumb</code> parameters.]'''
'''[This currently does not work for MediaWiki files that use the <code>frame</code> or <code>thumb</code> parameters]'''


== Parameters ==
== Parameters ==
Line 34: Line 34:
This is a long spoiler!
This is a long spoiler!


It is uses multiple lines!!!
It uses multiple lines!!!
}}
}}
</pre>
</pre>
Line 66: Line 66:


----
----
Hide images by using <code>type=image</code>: '''[This currently does not work for MediaWiki files that use the <code>frame</code> or <code>thumb</code> parameters.]'''
Hide images by using <code>type=image</code>: '''[This currently does not work for MediaWiki files that use the <code>frame</code> or <code>thumb</code> parameters]'''
<pre>
<pre>
{{Spoiler|type=image|[[File:Promotion 16.png]]}}
{{Spoiler|type=image|[[File:Promotion 16.png]]}}

Latest revision as of 14:44, 2 February 2026

Overview

Use this spoiler tag to hide text until it is revealed by clicking on it. It can then be toggled back on by clicking again.

The spoiler works for inline text and multiple paragraphs. It can hide templates, but once opened, they might not be able to be hidden again.

[This currently does not work for MediaWiki files that use the frame or thumb parameters]

Parameters

Parameter Description Example
1 or content required Content of the spoiler content=This is a spoiler!
type optional Is the content of the spoiler an image or a big text block type=block or type=image
blur optional Should the text be blurred instead of blocked? blur=y or blur=yes

Example

To hide text inline, use:

Example text that is before the spoiler: {{Spoiler|This is a spoiler!}} And an example text after the spoiler.

to get this:

Example text before the spoiler: This is a spoiler! And an example text after the spoiler.


To hide text that spans multiple lines, use:

{{Spoiler|type=block|
This is a long spoiler!

It uses multiple lines!!!
}}

to get this:

This is a long spoiler!

It is uses multiple lines!!!


To hide text, both inline or multiple lines, by blurring, use:

{{Spoiler|type=block|blur=yes|
This is a long spoiler!

It is uses multiple lines!!!
}}

to get this:

This is a long spoiler!

It is uses multiple lines!!!


Hide images by using type=image: [This currently does not work for MediaWiki files that use the frame or thumb parameters]

{{Spoiler|type=image|[[File:Promotion 16.png]]}}

to get this:

This is a caption

The spoiler template is based on this template