Difference between revisions of "Template:Showhide"

From SpiralKnights

Jump to: navigation, search
m (Protected "Template:Showhide": Stop mistaken edits ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(a small tweak to add the option to remain open or closed by default)
 
Line 1: Line 1:
 
<div style="width: {{{width|60em}}}">
 
<div style="width: {{{width|60em}}}">
<div class="NavFrame collapsed">
+
<div class="NavFrame {{{state|collapsed}}}">
 
   <div style="text-align:left" class="NavHead">{{{1}}}</div>
 
   <div style="text-align:left" class="NavHead">{{{1}}}</div>
 
   <div style="text-align:left" class="NavContent">
 
   <div style="text-align:left" class="NavContent">
 
{{{content}}}</div></div></div><noinclude>{{documentation}}</noinclude>
 
{{{content}}}</div></div></div><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:25, 20 August 2015

[edit] [purge] Template documentation

This template is used to hide certain sections of article content in a 'Show/Hide' drop down bar. This gives readers the opportunity to choose whether or not to view content that they either may not be interested in (a long list of FAQ) or may spoil the game for them, by revealing objectives or elements of the game they have yet to discover for themselves.

Usage

Example:

{{showhide|<header text>|content=<hidden content>}}

Optional:

width = number (default is 60em)

Personal tools