Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
CatMurderer (talk | contribs) No edit summary |
Matthew250 (talk | contribs) (Undo revision 185425 by CatMurderer (talk)) |
||
Line 1: | Line 1: | ||
<{{#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. | |||
== == | |||
=== 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 | |||
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:Maintenance templates]] | |||
</noinclude> | |||