Template:Spoiler: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m Protected "Template:Spoiler" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
mNo edit summary
Tag: Manual revert
 
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 ===
=== What to mark? ===
=== Grey areas ===
 
=== Things to ignore ===
 
== 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



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.

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.
}}
  • Harry is the last horcrux.
  • And Chell is GLaDOS' daughter.