Template:Spoiler: Difference between revisions

From Project Gorgon
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">
  <div class="spoilers-button">
<span class="spoilers-button">
    <div class="spoilers-show">SHOWWWW</div>
<span class="spoilers-show" style="display:inline"><strong>Spoiler!</strong> Click to reveal.</span>
    <div class="spoilers-hide">HIDDDDE</div>
<span class="spoilers-hide" style="display:none">Hide</span>
  </div>
</span>
  <div class="spoilers-body" style="display:none;">
<div class="spoilers-body" style="display:none;">
TESTING A SPOILER
'''Formatting works'''


  </div>
{| 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 (WIP).


=== Parameters ===
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.
None.
 


[[Category:Formatting templates|Spoiler]]
[[Category:Formatting templates|Spoiler]]
</noinclude>
</noinclude>

Revision as of 17:11, 23 September 2014

Spoiler! Click to reveal.

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.