Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Collapsible sections option

Permanently protected template
From Wikipedia, the free encyclopedia
Collapsible groups and sections option
  • This template includes collapsible groups/sections. When itfirst appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this,include the parameter|name wherename is one of the following words that identify the groups/sections (omit any speech or quotation marks):
  • {{{list}}}
Template documentation[view] [edit] [history] [purge]

{{Collapsible sections option}} is a standardised message indicating how the collapsible parts of a template built from{{Navbox with collapsible groups}} may be managed.

Syntax

{{Collapsible sections option| list=| example=<!--(optional)-->| default=<!--(optional)-->}}

list is a list of the section/group/etc names (thesection[N]name  / group[N]name  / abbr[N] parameters) given in the template's code;default indicates which, if any, is to be shown expanded by default.

If the template has only one collapsible group/section,

{{Collapsible section option |name}}

wherename is that group/section's name, is recommended instead. It produces a more concise version of the standard message.

Example

Example
Overview
(content1)
Two-word title
(content2)
Concepts
(content3)
Related topics
(content4)

The code for a {{Collapsible sections option}} for the above template could be:

{{Collapsible sections option| list={{hlist|overview|"two-word name"|concepts|related}}| example= two-word name| default= overview}}

This code would produce:

Collapsible groups and sections option
  • This template includes collapsible groups/sections. When itfirst appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this,include the parameter|name wherename is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • overview
    • "two-word name"
    • concepts
    • related
  • For example:{{Example |two-word name}}
  • The group/section namedoverview has been set to be visible when the template appears.

See also

The abovedocumentation istranscluded fromTemplate:Collapsible sections option/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Collapsible_sections_option&oldid=1303237361"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp