Template:Collapsible section top/doc View history

(Created page with "{{doc subpage}} This template is part of template collection managing the "''Collapsible section''" style feature. This collection contains 3 templates : * {{tl|Collapsible s...")
 
mNo edit summary
Line 10: Line 10:
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 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 <code>[Expand]</code>) link, and can afterwards decide to collapse back the section (by clicking on the <code>[Collapse]</code> link)
The reader can decide to "expand" the section (by clicking on the <code>[Expand]</code> link), and can afterwards decide to collapse back the section (by clicking on the <code>[Collapse]</code> link)


==Usage==
==Usage==

Revision as of 13:14, 22 June 2015

This is a documentation subpage for Template:Collapsible section top.
It contains usage information, categories and other content that is not part of the original template 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.