Template:Collapse: Difference between revisions
Template page
More actions
mNo edit summary |
setting title default to {{PAGENAME}} |
||
| 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 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="padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#e0e0e0}}}"|{{{title}}} | !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}}}}} | ||
|- | |- | ||
|style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"| | |style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"| | ||
| Line 9: | Line 9: | ||
---- | ---- | ||
'''{{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 | * Note: If the ''content'' includes an equal sign, use <nowiki>{{</nowiki>collapsed|1=''content''}} or replace the equal signs with <code>&#61;</code>. | ||
;Optional parameters<nowiki>:</nowiki> | ;Optional parameters<nowiki>:</nowiki> | ||
Revision as of 15:14, 25 February 2010
| Collapse |
|---|
|
{{{1}}} |
⧼usage⧽: {{collapsed|title=title|content}}
- Note: If the content includes an equal sign, use {{collapsed|1=content}} or replace the equal signs with
=.
- Optional parameters:
background-c= background color (default: #fff)border-c= border color (default: #aaa)border-w= border width (default: 1px)border-s= border style (default: solid)header-c= header color (default: #e0e0e0)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.