Difference between revisions of "Template:Collapsible section"
Jump to navigation
Jump to search
imported>Sardanaphalus (framestyle) |
imported>EdJohnston m (Protected "Template:Collapsible section": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<div class="NavFrame" style="font-size:100%;margin:0;border-style:none;padding:0;"> | <div class="NavFrame" style="font-size:100%;margin:0;border-style:none;padding:0;"> | ||
<div class="NavFrame" style="margin:0;border-style:none;padding:0;{{{framestyle|}}}"><!-- | <div class="NavFrame" style="margin:0;border-style:none;padding:0;{{{framestyle|}}}"><!-- | ||
| − | --><div class="NavHead" style="background:{{{ | + | --><div class="NavHead" style="background:{{{background|transparent}}};text-align:{{{titlealign|center}}};{{{titlestyle|}}}"> {{{title|<noinclude>[title]</noinclude>}}} </div><!-- |
-->{{#if:{{{note|}}} | |<span style="text-align:center;font-size:85%;"> — View by clicking [show] — </span>}}<!-- | -->{{#if:{{{note|}}} | |<span style="text-align:center;font-size:85%;"> — View by clicking [show] — </span>}}<!-- | ||
--><div class="NavContent" style="display:none;text-align:left;<!--{{{contentstyle|}}}-->"> {{{content|}}} </div> | --><div class="NavContent" style="display:none;text-align:left;<!--{{{contentstyle|}}}-->"> {{{content|}}} </div> | ||
</div> | </div> | ||
</div><noinclude>{{Documentation}}</noinclude> | </div><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 04:51, 3 February 2017
[title]
— View by clicking [show] —
| Collapsible templates |
|---|
| Script error: No such module "aligned table". |
| Article namespace |
|
| Infoboxes |
| Navigation templates |
| Talk namespace |
|
Syntax
{{Collapsible section
| framestyle = <!-- CSS styling applied to section -->
| titlealign = <!-- center (default), left or right -->
| titlestyle = <!-- CSS styling applied to title -->
| title =
| content =
| note = <!-- set to "omit", "off", "exclude", etc to omit "View by" note, otherwise delete or leave unused -->
}}
To omit the "View by clicking [show]" message below the title, set |note=omit or off or exclude etc.
Example
{{Collapsible section
| title = Example
| content = ''{{Lorem ipsum}}''
}}
produces:
Example
— View by clicking [show] —
See also
- {{Collapsible list}}
- {{Collapse top}}
- {{Collapse bottom}}
| The above documentation is transcluded from Template:Collapsible section/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |