Difference between revisions of "Template:Spoiler"
From Project: Gorgon Wiki
Gorgonzola (talk | contribs) (Working on a SPOILER that allows formatting inside.) |
Gorgonzola (talk | contribs) m |
||
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 12: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.