Difference between revisions of "Template:Spoiler"

From Disobiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><div class="spoiler"><span class="spoiler-click">{{{1}}}</span> <span class="spoiler-data">{{{2}}}</span></div>​</includeonly><noinclude>
{| class="collapsible collapsed" style="width:{{{width|100%}}};"
+
Places inline hidden text on a page, which can be displayed with a click.
! {{{1}}}
 
|-
 
| {{{2}}}
 
|}
 
</includeonly><noinclude>
 
Places a collapsed table on a page, which can be expanded with a click.
 
  
 
==Usage==
 
==Usage==
Line 14: Line 8:
 
| CLICK ME FOR YER SEKRIT!
 
| CLICK ME FOR YER SEKRIT!
 
| Ok, here's the deal… first, you need to take off your clothes…
 
| Ok, here's the deal… first, you need to take off your clothes…
| width = 100%
 
 
}}</pre>
 
}}</pre>
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 13:44, 30 October 2018

Places inline hidden text on a page, which can be displayed with a click.

Usage

{{Spoiler
| CLICK ME FOR YER SEKRIT!
| Ok, here's the deal… first, you need to take off your clothes…
}}