Template:Collapsible section top View history

Revision as of 19:30, 1 October 2014 by Deeploz (talk | contribs)
Documentation icon Template documentation[view] [edit] [history] [purge]

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

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 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:)


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.