Modèle:Collapsible section top/doc Voir l’historique

This is a documentation subpage for Modèle:Collapsible section top.
It contains usage information, categories and other content that is not part of the original modèle page.

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 one parameter is in the {{Collapsible section top}} template:

{{Collapsible section top |expand=yes }}

If the |expand=yes parameter is specified, the Collapsible Section is displayed expanded instead of collapsed.