Шаблон:Collapsible sections option/документація

{{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 (the section[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}}

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

Example ред.

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:

Як керувати параметрами згортуваних груп/секцій цього шаблону
  • Цей шаблон включає згортувані групи/секції. Коли він вперше відображається, одна з цих груп/секцій може бути визначена видимою ("expanded") поки інші залишаются згорнутими ("collapsed") окремо від їх заголовків. Для досягнення цього, включіть параметр |name де name це одне з наступних слів, які ідентифікують групи/секції (опустіть будь-яке цитування або лапки):
    • overview
    • "two-word name"
    • concepts
    • related
  • Наприклад: {{Example |two-word name}}
  • Група/секція, названа overview була визначена для відображення під час появи шаблону.

See also ред.