Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary Tag: Manual revert |
||
| (15 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
<span class="spoiler-text">{{{1|}}}</span><!-- | <{{#if:{{{block|}}}|div|span}} class="spoiler-text">{{{1|}}}</{{#if:{{{block|}}}|div|span}}><includeonly>{{#if:{{NAMESPACE}} | ||
--> | | {{ns:0}}<!-- Don't categorize non-mainspace pages. --> | ||
| {{if lang | |||
| en = [[Category:Spoiler|{{PAGENAME}}]] | |||
| non-en = [[Category:Spoiler/lang|{{SUBPAGENAME}}]] | |||
}} | |||
}}</includeonly><noinclude> | |||
{{doc begin}} | |||
{{tl|Spoiler}} is a spoiler tag template. If spoilers are toggled off (using the tab at the top of the page) text inside the {{tl|Spoiler}} tag will be blacked out. You can still highlight the text to view it without toggling all spoilers on. | |||
=== | === Examples === | ||
{{ | * <code>A line of text. <nowiki>{{spoiler|Snape kills Dumbledore}}.</nowiki></code> generates | ||
A line of text. {{spoiler|Snape kills Dumbledore}}. | |||
* The below code will generate: | |||
<pre> | |||
{{Spoiler|block=yes| | |||
* Harry is the last horcrux. | |||
* And [[Chell]] is [[GLaDOS]]' daughter. | |||
}} | }} | ||
</pre> | |||
{{Spoiler|block=yes| | |||
* Harry is the last horcrux. | |||
* And [[Chell]] is [[GLaDOS]]' daughter. | |||
}} | |||
}} | |||
[[Category:Spoiler templates]] | [[Category:Spoiler templates]] | ||
[[Category:Maintenance templates]] | [[Category:Maintenance templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:12, 1 July 2025
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
Documentation for Spoiler
{{Spoiler}} is a spoiler tag template. If spoilers are toggled off (using the tab at the top of the page) text inside the {{Spoiler}} tag will be blacked out. You can still highlight the text to view it without toggling all spoilers on.
Examples
A line of text. {{spoiler|Snape kills Dumbledore}}.generates
A line of text. Snape kills Dumbledore.
- The below code will generate:
{{Spoiler|block=yes|
* Harry is the last horcrux.
* And [[Chell]] is [[GLaDOS]]' daughter.
}}