Template:Collapse: Difference between revisions
Template page
More actions
Clarification |
make header font size only affect header |
||
| Line 1: | Line 1: | ||
{| class="collapsible {{#ifeq:{{{expand|no}}}|no|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 | {| class="collapsible {{#ifeq:{{{expand|no}}}|no|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}}};" | ||
!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}}}}} | !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}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"|{{{title|{{PAGENAME}}}}} | ||
|- | |- | ||
|style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"| | |style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"| | ||
Revision as of 14:55, 24 March 2010
| Collapse |
|---|
|
{{{1}}} |
⧼usage⧽: {{collapsed|title=title|1=content}}
- Note: If the content includes an equal sign, use {{collapsed|1=content}} or replace the equal signs with
=. - Set
expandto '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.