Difference between revisions of "Template:Collapsible section"

From blackwiki
Jump to navigation Jump to search
imported>Jerem43
m (Code edit - Add variable)
imported>EdJohnston
m (Protected "Template:Collapsible section": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="NavFrame" style="padding: 0px; border-style: none; font-size: 100%;">
+
<div class="NavFrame" style="font-size:100%;margin:0;border-style:none;padding:0;">
<div class="NavFrame" style="padding: 0px; border-style: none;">
+
<div class="NavFrame" style="margin:0;border-style:none;padding:0;{{{framestyle|}}}"><!--
<div class="NavHead" style="background: {{{background|transparent}}}; text-align: left;">{{{title|}}}</div>
+
  --><div class="NavHead" style="background:{{{background|transparent}}};text-align:{{{titlealign|center}}};{{{titlestyle|}}}"> {{{title|<noinclude>[title]</noinclude>}}} </div><!--
{{small|{{center|{{mdash}} View by clicking ''show'' {{mdash}}}}}}
+
  -->{{#if:{{{note|}}} | |<span style="text-align:center;font-size:85%;"> —&nbsp;View by clicking [show]&nbsp;— </span>}}<!--
<div class="NavContent" style="display: none; text-align: left;">
+
  --><div class="NavContent" style="display:none;text-align:left;<!--{{{contentstyle|}}}-->"> {{{content|}}} </div>
{{{content|{{lorem ipsum}}}}}
+
</div>
</div></div></div></div><noinclude>
+
</div><noinclude>{{Documentation}}</noinclude>
{{documentation}}
 
</noinclude>
 

Latest revision as of 04:51, 3 February 2017

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