Difference between revisions of "Template:Spoiler"

From [YSDC] Into The Deep
Jump to: navigation, search
m (Updated code to allow spoiler text to work on iOS devices.)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<br>
+
<p>
{| border="0" cellpadding="2" cellspacing="2" align="left"
+
<div style="padding:1px; background-color:#000000; color: #000000;" onclick="var bg=this.style.backgroundColor;this.style.backgroundColor=(bg!=='transparent'?'transparent':'#000000')">
|-
+
<span style="color: #FFFFFF;">'''&nbsp;Spoiler Section'''&nbsp;''(Highlight to Read)''<br></span>
| nowrap="nowrap" style="white-space: nowrap; border: none;" | '''Begin Spoiler''' ''(highlight to read)''
+
{{{1}}}
|-
+
</div>
| align="left" style="background-color: #FFFFFF; color: #FFFFFF; border: none;" | {{{text}}}
+
</p>
|-
 
| nowrap="nowrap" style="white-space: nowrap; border: none;" | '''End Spoiler
 
|}
 
<br>
 
 
<noinclude>[[Category:Wiki:Templates|Spoiler]]</noinclude>
 
<noinclude>[[Category:Wiki:Templates|Spoiler]]</noinclude>

Latest revision as of 17:26, 13 December 2017

 Spoiler Section (Highlight to Read)
{{{1}}}