Template:Collapsible sections option
Template:Unbulleted list
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
{{#invoke:Hatnote|hatnote}}
{{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
{{#invoke:navbox|navbox |name = |navbar = plain |state = expanded |border =
|title = Example |above = |image = |imageleft =
|bodyclass = |titleclass = |aboveclass = |belowclass = |groupclass = |listclass = plainlist |imageclass =
|style = margin-bottom:1.5em; |basestyle = |titlestyle = |abovestyle = |belowstyle = |imagestyle = |imageleftstyle =
|list1 = {{#invoke:navbox|navbox|child
|navbar = plain |state = uncollapsed |titlestyle = ; |liststyle = |title = Overview |list1 = (content1) |image = |imageleft = |void = }}
|list2 = {{#invoke:navbox|navbox|child
|navbar = plain |state = collapsed |titlestyle = ; |liststyle = |title = Two-word title |list1 = (content2) |image = |imageleft = |void = }}
|list3 = {{#invoke:navbox|navbox|child
|navbar = plain |state = collapsed |titlestyle = ; |liststyle = |title = Concepts |list1 = (content3) |image = |imageleft = |void = }}
|list4 = {{#invoke:navbox|navbox|child
|navbar = plain |state = collapsed |titlestyle = ; |liststyle = |title = Related topics |list1 = (content4) |image = |imageleft = |void = }}
|list5 =
|list6 =
|list7 =
|list8 =
|list9 =
|list10 =
|list11 =
|list12 =
|list13 =
|list14 =
|list15 =
|list16 =
|list17 =
|list18 =
|list19 =
|list20 =
|below =
}}
The code for a {{Collapsible sections option}} for the above template could be:
{{Collapsible sections option | list = {{hlist |overview |"two-word name" |concepts |details |related}} | example = two-word name | default = overview }}
This code would produce:
{{Collapsible sections optionTemplate:When in sandbox | template = Example | list = {{safesubst:#invoke:list|horizontal}} | example = two-word name | default = overview }}
See also
- {{Collapsible lists option}}
- {{Collapsible option}}
- Help:Collapsingar:قالب:Collapsible sections option
as:Template:Collapsible sections option ja:Template:Collapsible sections option pt:Predefinição:Collapsible sections option