Difference between revisions of "Template:Spoiler"
Jump to navigation
Jump to search
m (small fix) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly><span title="{{Spoiler Alert!}}" style="padding: 1px;white-space:nowrap;background-color:lightblue; outline:1px solid {{Spoiler Alert!}}</span></includeonly> | |
− | |||
− | |||
− | }}< | ||
==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>