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
setting title default to {{PAGENAME}}
tweak colors, add expand option
Line 1: Line 1:
{| class="collapsible collapsed" style="width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:1px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#aaa}}}; background:{{{background-c|#fff}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"
{| class="collapsible {{#if:{{{expand|}}}||collapsed}}" style="width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:1px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#c0c0c0}}}; background:{{{background-c|#fff}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"
!colspan="0" style="padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#e0e0e0}}}"|{{{title|{{PAGENAME}}}}}
!colspan="0" style="padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#f0f2f5}}}"|{{{title|{{PAGENAME}}}}}
|-
|-
|style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"|
|style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"|
Line 10: Line 10:
'''{{int:usage}}:''' <nowiki>{{</nowiki>collapsed|title=''title''|''content''}}
'''{{int:usage}}:''' <nowiki>{{</nowiki>collapsed|title=''title''|''content''}}
* Note: If the ''content'' includes an equal sign, use <nowiki>{{</nowiki>collapsed|1=''content''}} or replace the equal signs with <code>&amp;#61;</code>.
* Note: If the ''content'' includes an equal sign, use <nowiki>{{</nowiki>collapsed|1=''content''}} or replace the equal signs with <code>&amp;#61;</code>.
* Set <code>expand</code> to yes (or anything) to have the box expanded by default.


;Optional parameters<nowiki>:</nowiki>
;Optional parameters<nowiki>:</nowiki>
* <code>header-c</code> = header color {{color|grey|(default: #f0f2f5)}}
* <code>border-c</code> = border color {{color|grey|(default: #c0c0c0)}}
* <code>background-c</code> = background color {{color|grey|(default: #fff)}}
* <code>background-c</code> = background color {{color|grey|(default: #fff)}}
* <code>border-c</code> = border color {{color|grey|(default: #aaa)}}
* <code>border-w</code> = border width {{color|grey|(default: 1px)}}
* <code>border-w</code> = border width {{color|grey|(default: 1px)}}
* <code>border-s</code> = border style {{color|grey|(default: solid)}}
* <code>border-s</code> = border style {{color|grey|(default: solid)}}
* <code>header-c</code> = header color {{color|grey|(default: #e0e0e0)}}
* <code>font-size</code> = size of header and body text {{color|grey|(default: 88%)}}
* <code>font-size</code> = size of header and body text {{color|grey|(default: 88%)}}
* <code>header-fs</code> = size of header text {{color|grey|(default: 88% or '<tt>font-size</tt>' if set)}}
* <code>header-fs</code> = size of header text {{color|grey|(default: 88% or '<tt>font-size</tt>' if set)}}

Revision as of 15:25, 25 February 2010



⧼usage⧽: {{collapsed|title=title|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) to have the box expanded by default.
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.