Difference between revisions of "Template:Showhide"

From SpiralKnights

Jump to: navigation, search
m (Remove lines)
(a small tweak to add the option to remain open or closed by default)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="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