Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
(add 'block' parameter to allow spoiler tags to be used across multiple lines & <ul> / <ol> elements.) |
No edit summary |
||
Line 9: | Line 9: | ||
{{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. | {{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 === | == Limitations == | ||
Doesn't work nice with headers sometimes. Examples: [https://theportalwiki.com/w/index.php?title=Portal_Test_Chamber_11&diff=182306&oldid=155441 1]. | |||
== Examples == | |||
* <code>A line of text. <nowiki>{{spoiler|Snape kills Dumbledore}}.</nowiki></code> generates | * <code>A line of text. <nowiki>{{spoiler|Snape kills Dumbledore}}.</nowiki></code> generates | ||
Revision as of 18:16, 8 April 2023
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.
Limitations
Doesn't work nice with headers sometimes. Examples: 1.
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. }}