Template:Collapsible content/doc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
m Bobogoobo moved page Template:Collapsible list/doc to Template:Collapsible content/doc without leaving a redirect: can be used for more than lists, so renaming
mNo edit summary
 
Line 5: Line 5:
==Parameters==
==Parameters==
*First unnamed parameter: the content to be collapsible.
*First unnamed parameter: the content to be collapsible.
*(optional) title: a heading to display above the content. This will be visible even when the content is collapsed.
*(optional) '''title''': a heading to display above the content. This will be visible even when the content is collapsed.
*(optional) width: the width of the list. Any valid CSS value can be used.
*(optional) '''width''': the width of the list. Any valid CSS value can be used.
*(optional) state: if this is set to "collapsed", the content will be collapsed by default. Otherwise, it will be expanded.
*(optional) '''state''': if this is set to "collapsed", the content will be collapsed by default. Otherwise, it will be expanded.


<includeonly>[[Category:Layout templates]]</includeonly>
<includeonly>[[Category:Layout templates]]</includeonly>

Latest revision as of 09:25, 2 September 2025

This page contains the documentation for Template:Collapsible content. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.

This template is used to display a block of content that can be hidden (including by default). Do not use this template excessively; most content should always be visible. This is especially useful for long (bulleted) lists but can be used for any content.

Parameters

  • First unnamed parameter: the content to be collapsible.
  • (optional) title: a heading to display above the content. This will be visible even when the content is collapsed.
  • (optional) width: the width of the list. Any valid CSS value can be used.
  • (optional) state: if this is set to "collapsed", the content will be collapsed by default. Otherwise, it will be expanded.