Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
Gorgonzola (talk | contribs) Working on a SPOILER that allows formatting inside. |
Gorgonzola (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
<div class="spoilers"> | <div class="spoilers gg-spoiler"> | ||
<span class="spoilers-button"> | |||
<span class="spoilers-show" style="display:inline"><strong>Spoiler!</strong> Click to reveal.</span> | |||
<span class="spoilers-hide" style="display:none">Hide</span> | |||
</span> | |||
<div class="spoilers-body" style="display:none;"> | |||
'''Formatting works''' | |||
{| class="wikitable" | |||
|- | |||
| Dogs || Cats | |||
|} | |||
</div> | |||
</div> | </div> | ||
== Description == | == Description == | ||
<pre> | <pre> | ||
{{Spoiler|<text>}} | {{Spoiler| | ||
<text> | |||
}} | |||
</pre> | </pre> | ||
Use this template to add a spoiler section to a page. I made this template to replace the tag provided by the <nowiki><spoiler></nowiki> extension, because for some reason it seems to bypass some of the MediaWiki formatting. | |||
[[Category:Formatting templates|Spoiler]] | [[Category:Formatting templates|Spoiler]] | ||
</noinclude> | </noinclude> | ||
Revision as of 17:11, 23 September 2014
Description
{{Spoiler|
<text>
}}
Use this template to add a spoiler section to a page. I made this template to replace the tag provided by the <spoiler> extension, because for some reason it seems to bypass some of the MediaWiki formatting.