Difference between revisions of "Template:Collapsible section"

From blackwiki
Jump to navigation Jump to search
imported>Jerem43
(Add title options)
imported>Jerem43
m (Copy edit - Change notice)
Line 2: Line 2:
 
<div class="NavFrame" style="padding: 0px; border-style: none;">
 
<div class="NavFrame" style="padding: 0px; border-style: none;">
 
<div class="NavHead" style="background: white; text-align: left;">{{{title|}}}</div>
 
<div class="NavHead" style="background: white; text-align: left;">{{{title|}}}</div>
<div style="font-size: smaller; text-align: left;">Make visible or invisible by clicking ''Show'' or ''Hide'', respectively.</div>
+
{{small|{{center|{{mdash}} View by clicking ''show'' {{mdash}}}}}}
 
<div class="NavContent" style="display: none; text-align: left;">
 
<div class="NavContent" style="display: none; text-align: left;">
 
{{{content|{{lorem ipsum}}}}}
 
{{{content|{{lorem ipsum}}}}}

Revision as of 04:45, 18 September 2013

50px Template documentation[view] [edit] [history] [purge]

Syntax

{{Collapsible section
 | framestyle =    <!-- CSS styling applied to section -->
 | titlealign =    <!-- center (default), left or right -->
 | titlestyle =    <!-- CSS styling applied to title -->
 | title = 
 | content = 
 | note =          <!-- set to "omit", "off", "exclude", etc to omit "View by" note, otherwise delete or leave unused -->
}}

To omit the "View by clicking [show]" message below the title, set |note=omit or off or exclude etc.

Example

{{Collapsible section
 | title = Example
 | content = ''{{Lorem ipsum}}''
}}

produces:

See also