Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Spoiler: Difference between revisions

Template page
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}}
--><includeonly>[[Category:Spoiler]]</includeonly><!--
| {{ns:0}}<!-- Don't categorize non-mainspace pages. -->
--><noinclude>
| {{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.


=== Example ===
=== Examples ===
{{Spoiler text|
* <code>A line of text. <nowiki>{{spoiler|Snape kills Dumbledore}}.</nowiki></code> generates
Lorum Ipsum lots of text. ejrnanfdsngasdfnhjafhndaghadghadghgadh
 
agdhagdhdfggjgffs
A line of text. {{spoiler|Snape kills Dumbledore}}.
gaddghadghgdjgdajadgjadgjagdjgjfkssfhks
 
* The below code will generate:
<pre>
&#123;&#123;Spoiler|block=yes|
* Harry is the last horcrux.
* And [[Chell]] is [[GLaDOS]]' daughter.
}}
}}
</pre>


<code><nowiki>{{Spoiler text|
{{Spoiler|block=yes|
Lorum Ipsum lots of text. ejrnanfdsngasdfnhjafhndaghadghadghgadh
* Harry is the last horcrux.
agdhagdhdfggjgffs
* And [[Chell]] is [[GLaDOS]]' daughter.
gaddghadghgdjgdajadgjadgjagdjgjfkssfhks
}}
}}</nowiki></code>


[[Category:Spoiler templates]]
[[Category:Spoiler templates]]
[[Category:Maintenance templates]]
[[Category:Maintenance templates]]
</noinclude>
</noinclude>