Kentsmith9 (talk | contribs) (Removed test) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="toccolours mw-collapsible {{#ifeq:{{{expand}}}|yes||mw-collapsed}}" style="width:100%; border: hidden; background-color: transparent"></includeonly><noinclude>{{Documentation}}</noinclude> | <includeonly><div class="toccolours mw-collapsible {{#ifeq:{{{expand}}}|yes||mw-collapsed}}" style="width:100%; border: hidden; background-color: transparent {{#if:{{{style|}}}|;{{{style}}}}}"></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 13:01, 4 December 2022
This template is part of template collection managing the "Collapsible section" style feature. This collection contains 3 templates :
Purpose
The purpose of this template collection is to collapse certain text sections in order to reduce the apparent length of the page and to provide a more digest look & feel of the article.
The reader can decide to "expand" the section (by clicking on the [Expand]
link), and can afterwards decide to collapse back the section (by clicking on the [Collapse]
link)
Usage
The following code :
{{Collapsible section top}} Top of the collapsible section. (Determine the position of the [Expand] link) This is the part of the text that is displayed in any case. It can be, for instance, an abstract of the whole section or some kind of wrap-up or a teasing inviting the reader to expand the section to learn more. {{Collapsible section content}} Collapsible content. This is the part of the text that is collapsible. It is usually the long portion of text that is detailing the concepts mentioned above, in the always displayed section. (This part stretch as far as it reach the last template below:) {{Collapsible section bottom}}
produces the following result
Parameters
The only parameters are in the {{Collapsible section top}} template, they are both optional:
{{Collapsible section top|expand=yes |style= CSS style codes}}
If the |expand=yes
parameter is specified, the Collapsible Section is displayed expanded instead of collapsed.
If the |style=
parameter is specified, it can be used to enter any CSS style codes and override the default style.
The above documentation is transcluded from Template:Collapsible section top/doc. Please add categories to the /doc subpage. Subpages of this template. |