Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Collapse: Difference between revisions

Template page
m noinclude
legacy
Line 3: Line 3:
  </div></div>
  </div></div>
|<!--template is being used to start divs (top part)-->
|<!--template is being used to start divs (top part)-->
<div class="collapsibletemplate  {{#ifeq:{{{expand|no}}}|no|collapsed}}" style="clear:both; width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:3px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#c0c0c0}}}; background:{{{background-c|#fff}}};">
<br><div class="collapsibletemplate  {{#ifeq:{{{expand|no}}}|no|collapsed}}" style="clear:both; width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:3px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#c0c0c0}}}; background:{{{background-c|#fff}}};">
<div class="collapsibleheader header" style="font-weight: bold; padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#f0f2f5}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"><span class="headertext">{{{title|{{PAGENAME}}}}} </span></div>
<div class="collapsibleheader header" style="font-weight: bold; padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#f0f2f5}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"><span class="headertext">{{{title|{{PAGENAME}}}}} </span></div>
<div class="body show-on-commons" style="padding:3px; font-weight:{{{fw2|normal}}}; font-size:{{{font-size|88%}}}; background:{{{bg2|transparent}}}; text-align:{{{align|left}}};">
<div class="body show-on-commons" style="padding:3px; font-weight:{{{fw2|normal}}}; font-size:{{{font-size|88%}}}; background:{{{bg2|transparent}}}; text-align:{{{align|left}}};">

Revision as of 20:20, 9 October 2010




⧼usage⧽: {{collapsed|title=title|1=content}}

  • Note: If the content includes an equal sign, use {{collapsed|1=content}} or replace the equal signs with &#61;.
  • Set expand to 'yes' (or anything besides 'no') to have the box expanded by default.
  • Default title is {{PAGENAME}} unless defined otherwise by title= MyTitle
Optional parameters:
  • header-c = header color (default: #f0f2f5)
  • border-c = border color (default: #c0c0c0)
  • background-c = background color (default: #fff)
  • border-w = border width (default: 1px)
  • border-s = border style (default: solid)
  • font-size = size of header and body text (default: 88%)
  • header-fs = size of header text (default: 88% or 'font-size' if set)
  • width = width of box (default: 100%)

View source for additional parameters.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.