Template:Collapse: Difference between revisions
Template page
More actions
m |
remove navbox class to paramatize more of the styling |
||
| Line 1: | Line 1: | ||
{| class="collapsible collapsed | {| 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%}}}}}};" | ||
!colspan="0" style="{{#ifeq:{{{header-align}}}|center| | !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}}} | ||
|- | |- | ||
|style="text-align:{{{align|left}}}"| | |style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"| | ||
{{{1}}} | {{{1}}} | ||
|}<noinclude> | |}<noinclude> | ||
| Line 16: | Line 16: | ||
* <code>border-s</code> = border style {{grey|(default: solid)}} | * <code>border-s</code> = border style {{grey|(default: solid)}} | ||
* <code>header-c</code> = header color {{grey|(default: #e0e0e0)}} | * <code>header-c</code> = header color {{grey|(default: #e0e0e0)}} | ||
* <code> | * <code>font-size</code> = size of header and body text {{grey|(default: 88%)}} | ||
* <code> | * <code>header-fs</code> = size of header text {{grey|(default: 88% or '<tt>font-size</tt>' if set)}} | ||
View source for additional parameters. | |||
<!-- | <!-- | ||
The title is shifted slightly to the left due to the show/hide button. This can be corrected by declaring '<tt>header-align</tt>' equal to '<tt>center</tt>' (even though that's already the default). | The title is shifted slightly to the left due to the show/hide button. This can be corrected by declaring '<tt>header-align</tt>' equal to '<tt>center</tt>' (even though that's already the default). | ||
Revision as of 20:12, 23 August 2008
| {{{title}}} |
|---|
|
{{{1}}} |
⧼usage⧽: {{collapsed|title=title|content}}
- Optional parameters:
background-c= background color Template:Greyborder-c= border color Template:Greyborder-w= border width Template:Greyborder-s= border style Template:Greyheader-c= header color Template:Greyfont-size= size of header and body text Template:Greyheader-fs= size of header text Template:Grey
View source for additional parameters.