Difference between revisions of "Template:Spoiler"

From ELWiki
Jump to navigation Jump to search
m (some tentative spoiler template)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ambox
+
<includeonly><span title="{{Spoiler Alert!}}" style="padding: 1px;white-space:nowrap;background-color:lightblue; outline:1px solid {{Spoiler Alert!}}</span></includeonly>
| type  = content
 
| text  = <strong>Spoiler Alert</strong><br>{{{1|This section contains spoilers or secret information! Don't read it, if you do not want spoil your fun discovering the world yourself }}}
 
}}<noinclude>
 
  
 
==Usage==
 
==Usage==
Line 8: Line 5:
 
<pre>{{spoiler|This section explains Novac's quest}}</pre>
 
<pre>{{spoiler|This section explains Novac's quest}}</pre>
 
</noinclude>
 
</noinclude>
 +
 +
 +
There's a [http://www.mediawiki.org/wiki/Extension:ShowHide showhide extension] for mediawiki:
 +
 +
<showhide>Some public text __HIDER__<br>
 +
<hide>And this is the description of the secret</hide><br>
 +
</showhide>
 +
 +
But maybe the [http://www.mediawiki.org/wiki/Extension:JSpoiler spoiler extension] is the better choice:
 +
 +
<spoiler text="Spoiler description">Hidden text which gives away the description of the secret</spoiler>

Latest revision as of 09:55, 1 January 2013


Usage

Enter {{spoiler|text}} inside an article section. Example:

{{spoiler|This section explains Novac's quest}}


There's a showhide extension for mediawiki:

<showhide>Some public text __HIDER__
<hide>And this is the description of the secret</hide>
</showhide>

But maybe the spoiler extension is the better choice:

<spoiler text="Spoiler description">Hidden text which gives away the description of the secret</spoiler>