Difference between revisions of "Template:Collapsible section/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (brackets)
imported>Sardanaphalus
(titlestyle)
Line 1: Line 1:
 
<div class="NavFrame" style="font-size:100%;border-style:none;padding:0;">
 
<div class="NavFrame" style="font-size:100%;border-style:none;padding:0;">
  <div class="NavFrame" style="border-style:none;padding:0;"><div class="NavHead" style="background:{{{background|transparent}}};text-align:{{{titlealign|center}}};">{{{title|<noinclude>(Title)</noinclude>}}}</div> {{#if:{{{no_note|}}} | |<span style="text-align:center;font-size:85%;">{{mdash}}&nbsp;View by clicking [show]&nbsp;{{mdash}}</span>}}
+
  <div class="NavFrame" style="border-style:none;padding:0;"><!--
 +
  --><div class="NavHead" style="background:{{{background|transparent}}};text-align:{{{titlealign|center}}};{{{titlestyle|}}}"> {{{title|<noinclude>[title]</noinclude>}}} </div><!--
 +
  -->{{#if:{{{no_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;">
 
{{{content|<noinclude>{{Lorem ipsum}}</noinclude>}}}
 
{{{content|<noinclude>{{Lorem ipsum}}</noinclude>}}}

Revision as of 21:57, 9 January 2015

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