Template:Collapse bottom

From Black Cat Studios
Revision as of 03:29, 19 June 2023 by Blackcat (talk | contribs) (Created page with "{{Template shortcut|Cot|Cob}} {{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{used in system|in MediaWiki:Protect-text}} The {{tlx|collapse top}} template (or {{tlx|cot}}), and its paired template {{tlx|collapse bottom}} (or {{tlx|cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup suc...")
Jump to navigationJump to search

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">

This is the title text

Sample contents text

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">
This is the title text

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

This is the title text

Sample contents text Template loop detected: Template:Collapse bottom


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Aligning box title along left margin – {{collapse top|left=true}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Changing background color – {{collapse top|bg=#F0F2F5}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding extra padding – {{collapse top|padding=5em}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Archiving a section: the markup below:
<syntaxhighlight lang="wikitext">
Extended content

Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

<syntaxhighlight lang="wikitext">
Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

Section header

Sample contents text Template loop detected: Template:Collapse bottom


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Collapse bottom

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

Template parameters

ParameterDescriptionTypeStatus
Title1 title heading header reason result

Main title of collapsed box

Example
This is the title text
Unknownrequired
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
Stringoptional
Indent (px or em)indent

Indents the box from the left of the page

Auto value
0px
Unknownoptional
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
Stringoptional
Border width (px)border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
Unknownoptional
Border colorb-color

Sets the border color

Default
Silver
Example
#F0F2F5
Unknownoptional
Template width (% or em)width

Sets the width of the overall template

Example
50%
Unknownoptional
Collapsed material background colorbg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
Unknownoptional
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

Example
true
Stringoptional
Title font colorfc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
Unknownoptional
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
Unknownoptional
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
Unknownoptional
Padding (px)padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
Unknownoptional
Expanded box colorbg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5
Unknownoptional

Redirects

To Collapse top:

To Collapse bottom:

See also

Template:Warchivenav</syntaxhighlight> produces:

This is the title text

Sample contents text

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">
This is the title text

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

This is the title text

Sample contents text Template loop detected: Template:Collapse bottom


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Aligning box title along left margin – {{collapse top|left=true}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Changing background color – {{collapse top|bg=#F0F2F5}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding extra padding – {{collapse top|padding=5em}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Archiving a section: the markup below:
<syntaxhighlight lang="wikitext">
Extended content

Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

<syntaxhighlight lang="wikitext">
Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

Section header

Sample contents text Template loop detected: Template:Collapse bottom


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Collapse bottom

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

Template parameters

ParameterDescriptionTypeStatus
Title1 title heading header reason result

Main title of collapsed box

Example
This is the title text
Unknownrequired
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
Stringoptional
Indent (px or em)indent

Indents the box from the left of the page

Auto value
0px
Unknownoptional
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
Stringoptional
Border width (px)border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
Unknownoptional
Border colorb-color

Sets the border color

Default
Silver
Example
#F0F2F5
Unknownoptional
Template width (% or em)width

Sets the width of the overall template

Example
50%
Unknownoptional
Collapsed material background colorbg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
Unknownoptional
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

Example
true
Stringoptional
Title font colorfc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
Unknownoptional
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
Unknownoptional
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
Unknownoptional
Padding (px)padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
Unknownoptional
Expanded box colorbg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5
Unknownoptional

Redirects

To Collapse top:

To Collapse bottom:

See also

Template:Warchivenav


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">
This is the title text

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

This is the title text

Sample contents text Template loop detected: Template:Collapse bottom


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Aligning box title along left margin – {{collapse top|left=true}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Changing background color – {{collapse top|bg=#F0F2F5}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding extra padding – {{collapse top|padding=5em}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Archiving a section: the markup below:
<syntaxhighlight lang="wikitext">
Extended content

Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

<syntaxhighlight lang="wikitext">
Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

Section header

Sample contents text Template loop detected: Template:Collapse bottom


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Collapse bottom

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

Template parameters

ParameterDescriptionTypeStatus
Title1 title heading header reason result

Main title of collapsed box

Example
This is the title text
Unknownrequired
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
Stringoptional
Indent (px or em)indent

Indents the box from the left of the page

Auto value
0px
Unknownoptional
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
Stringoptional
Border width (px)border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
Unknownoptional
Border colorb-color

Sets the border color

Default
Silver
Example
#F0F2F5
Unknownoptional
Template width (% or em)width

Sets the width of the overall template

Example
50%
Unknownoptional
Collapsed material background colorbg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
Unknownoptional
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

Example
true
Stringoptional
Title font colorfc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
Unknownoptional
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
Unknownoptional
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
Unknownoptional
Padding (px)padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
Unknownoptional
Expanded box colorbg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5
Unknownoptional

Redirects

To Collapse top:

To Collapse bottom:

See also

Template:Warchivenav

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">
This is the title text

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

This is the title text

Sample contents text Template loop detected: Template:Collapse bottom


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Aligning box title along left margin – {{collapse top|left=true}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Changing background color – {{collapse top|bg=#F0F2F5}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding extra padding – {{collapse top|padding=5em}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Archiving a section: the markup below:
<syntaxhighlight lang="wikitext">
Extended content

Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

<syntaxhighlight lang="wikitext">
Section header

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

Section header

Sample contents text Template loop detected: Template:Collapse bottom


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Collapse bottom

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

Template parameters

ParameterDescriptionTypeStatus
Title1 title heading header reason result

Main title of collapsed box

Example
This is the title text
Unknownrequired
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
Stringoptional
Indent (px or em)indent

Indents the box from the left of the page

Auto value
0px
Unknownoptional
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
Stringoptional
Border width (px)border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
Unknownoptional
Border colorb-color

Sets the border color

Default
Silver
Example
#F0F2F5
Unknownoptional
Template width (% or em)width

Sets the width of the overall template

Example
50%
Unknownoptional
Collapsed material background colorbg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
Unknownoptional
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

Example
true
Stringoptional
Title font colorfc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
Unknownoptional
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
Unknownoptional
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
Unknownoptional
Padding (px)padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
Unknownoptional
Expanded box colorbg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5
Unknownoptional

Redirects

To Collapse top:

To Collapse bottom:

See also

Template:Warchivenav

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

<syntaxhighlight lang="wikitext">
This is the title text

Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

This is the title text

Sample contents text Template loop detected: Template:Collapse bottom


{{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

Parameters

This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

|1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
|warning=yes
Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
|2= or second unnamed parameter
This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
|left=yes
Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
|expand=yes or |collapse=no
Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
|bg=
Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
|fc=
Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
|border=
Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
|b-color=
Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
|padding=
Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
|width=
Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
|border2=
Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
|bg2=
Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
|indent=
Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
|clear=
In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

Examples

  • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
This is the title text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
This is the title text
The following is a closed discussion. Please do not modify it.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Aligning box title along left margin – {{collapse top|left=true}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Changing background color – {{collapse top|bg=#F0F2F5}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Adding extra padding – {{collapse top|padding=5em}}
Extended content

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template loop detected: Template:Collapse bottom

  • Archiving a section: the markup below:
<syntaxhighlight lang="wikitext">

Template parameters

1titleheadingheaderreasonresult

Main title of collapsed box

Example
This is the title text
2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
indent

Indents the box from the left of the page

Auto value
0pxexpandcollapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
b-color

Sets the border color

Default
Silver
Example
#F0F2F5
width

Sets the width of the overall template

Example
50%
bg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
left

Will align the 'parameter 1 title' along the left margin

Example
true
fc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
border2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
bg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5

Redirects

To Collapse top:

  • {{}}
  • cot
  • {{}}
  • ctop
  • {{}}
  • DAT

    To Collapse bottom:

  • {{}}
  • cob
  • {{}}
  • cbot

    See also
  • {{}}
  • collapse
  • {{}}
  • collapse top
  • {{}} and {{}}
  • discussion topdiscussion bottom
  • {{}} and {{}}
  • hidden archive tophidden archive bottom
  • {{}} and {{}}
  • hidden beginhidden end
  • {{}}
  • hidden
  • {{}}
  • collapsible list

    Template:Warchivenav


    Extended content

    Section header

    Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

    <syntaxhighlight lang="wikitext">

    Template parameters

    1titleheadingheaderreasonresult

    Main title of collapsed box

    Example
    This is the title text
    2

    Will override the standard warning line, and make the 'warning' parameter unnecessary

    Example
    This is a custom warning line
    indent

    Indents the box from the left of the page

    Auto value
    0pxexpandcollapse

    Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

    Example
    true
    Auto value
    border

    Sets the width of the border line on the collapsed material

    Default
    1px
    Example
    2px
    Auto value
    b-color

    Sets the border color

    Default
    Silver
    Example
    #F0F2F5
    width

    Sets the width of the overall template

    Example
    50%
    bg

    Sets the background color of the collapsed material

    Default
    #CFC
    Example
    #F0F2F5
    left

    Will align the 'parameter 1 title' along the left margin

    Example
    true
    fc

    Sets the font color of the title of the collapsible bar

    Default
    Black
    Example
    #F0F2F5
    warning

    Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

    Example
    true
    border2

    Sets the border of the box that appears when template is expanded

    Default
    1px silver
    Example
    2px
    padding

    Sets the padding on the collapsed material in the colored area

    Default
    8px
    Example
    16px
    bg2

    Sets background of the box that appears when template is expanded

    Default
    white
    Example
    #F0F2F5

    Redirects

    To Collapse top:

  • {{}}
  • cot
  • {{}}
  • ctop
  • {{}}
  • DAT

    To Collapse bottom:

  • {{}}
  • cob
  • {{}}
  • cbot

    See also
  • {{}}
  • collapse
  • {{}}
  • collapse top
  • {{}} and {{}}
  • discussion topdiscussion bottom
  • {{}} and {{}}
  • hidden archive tophidden archive bottom
  • {{}} and {{}}
  • hidden beginhidden end
  • {{}}
  • hidden
  • {{}}
  • collapsible list

    Template:Warchivenav


    TemplateData
    This is the for this template used by , and other tools. to see a monthly parameter usage report for this template based on this TemplateData.
    TemplateDataTemplateWizardVisualEditorClick here

    TemplateData for Collapse bottom

    Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

    Section header

    Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

    Section header

    Sample contents text

    Template loop detected: Template:Collapse bottom


    TemplateData
    This is the for this template used by , and other tools. to see a monthly parameter usage report for this template based on this TemplateData.
    TemplateDataTemplateWizardVisualEditorClick here

    TemplateData for Collapse bottom

    Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

    Section header

    Sample contents text Template loop detected: Template:Collapse bottom


    TemplateData

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

    TemplateData for Collapse bottom

    Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

    Template parameters

    ParameterDescriptionTypeStatus
    Title1 title heading header reason result

    Main title of collapsed box

    Example
    This is the title text
    Unknownrequired
    Custom warning line2

    Will override the standard warning line, and make the 'warning' parameter unnecessary

    Example
    This is a custom warning line
    Stringoptional
    Indent (px or em)indent

    Indents the box from the left of the page

    Auto value
    0px
    Unknownoptional
    expandexpand collapse

    Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

    Example
    true
    Auto value
    Stringoptional
    Border width (px)border

    Sets the width of the border line on the collapsed material

    Default
    1px
    Example
    2px
    Auto value
    Unknownoptional
    Border colorb-color

    Sets the border color

    Default
    Silver
    Example
    #F0F2F5
    Unknownoptional
    Template width (% or em)width

    Sets the width of the overall template

    Example
    50%
    Unknownoptional
    Collapsed material background colorbg

    Sets the background color of the collapsed material

    Default
    #CFC
    Example
    #F0F2F5
    Unknownoptional
    Alight along the left margin (true or blank)left

    Will align the 'parameter 1 title' along the left margin

    Example
    true
    Stringoptional
    Title font colorfc

    Sets the font color of the title of the collapsible bar

    Default
    Black
    Example
    #F0F2F5
    Unknownoptional
    Warning (true or blank)warning

    Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

    Example
    true
    Unknownoptional
    Expanded box border size & colorborder2

    Sets the border of the box that appears when template is expanded

    Default
    1px silver
    Example
    2px
    Unknownoptional
    Padding (px)padding

    Sets the padding on the collapsed material in the colored area

    Default
    8px
    Example
    16px
    Unknownoptional
    Expanded box colorbg2

    Sets background of the box that appears when template is expanded

    Default
    white
    Example
    #F0F2F5
    Unknownoptional

    Redirects

    To Collapse top:

    To Collapse bottom:

    See also

    Template:Warchivenav

    • Aligning box title along left margin – {{collapse top|left=true}}
    Section header

    Sample contents text </syntaxhighlight> The end result:

    Template loop detected: Template:Collapse bottom
    Extended content

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

    This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

    Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

    Usage

    Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

    <syntaxhighlight lang="wikitext">
    Extended content

    Section header

    Sample contents text </syntaxhighlight> must be rewritten as:

    Template loop detected: Template:Collapse bottom
    This is the title text

    Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

    Extended content

    Template loop detected: Template:Collapse bottom
    • Archiving a section: the markup below:
    • This is the title text

      Sample contents text Template loop detected: Template:Collapse bottom


      {{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

      Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

      Parameters

      This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

      |1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
      Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
      |warning=yes
      Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
      |2= or second unnamed parameter
      This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
      |left=yes
      Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
      |expand=yes or |collapse=no
      Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
      |bg=
      Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
      |fc=
      Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
      |border=
      Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
      |b-color=
      Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
      |padding=
      Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
      |width=
      Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
      |border2=
      Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
      |bg2=
      Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
      |indent=
      Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
      |clear=
      In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

      Examples

      • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
      Extended content

      Template loop detected: Template:Collapse bottom
      • Adding extra padding –
      • {{collapse top|padding=5em}}
        This is the title text

        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

        Template loop detected: Template:Collapse bottom

        • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
        Extended content

        Template loop detected: Template:Collapse bottom
        • Changing background color –
        • {{collapse top|bg=#F0F2F5}}
          This is the title text
          The following is a closed discussion. Please do not modify it.

          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

          Template loop detected: Template:Collapse bottom

          • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
          This is the title text

          Template loop detected: Template:Collapse bottom
          • Aligning box title along left margin –
          • {{collapse top|left=true}}
            This is the title text
            This is a custom warning line

            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

            Template loop detected: Template:Collapse bottom

            • Aligning box title along left margin – {{collapse top|left=true}}
            This is the title text
            Please do not modify it.

            Template loop detected: Template:Collapse bottom
            • Adding a custom warning line –
            • {{collapse top|This is the title text|This is a custom warning line}}
              Extended content

              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

              Template loop detected: Template:Collapse bottom

              • Changing background color – {{collapse top|bg=#F0F2F5}}
              This is the title text

              Template loop detected: Template:Collapse bottom
              • Adding a standard warning line –
              • {{collapse top|This is the title text|warning=true}}
                Extended content

                Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                Template loop detected: Template:Collapse bottom

                • Adding extra padding – {{collapse top|padding=5em}}
                This is the title text

                Sample contents text

                Template loop detected: Template:Collapse bottom

                should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the , you need to remember to manually remove the colon () or colons it inserts at the start of each line to maintain proper indentation after replying.


                {{}}collapse bottomReply Tool:

                Note that the entirety of that gets transcluded is "": indeed, at eight characters, it is shorter than "" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

                {{}}collapse bottom|}</div>{{}}collapse bottom

                Parameters

                This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. , not ).

                1em1 em
                , , , , ,
                |1=|title=|reason=|header=|heading=|result=, or first unnamed parameter
                Will give the collapsed box a title, which occurs on the same line as the link and is always visible. It defaults to "Extended content". For example, or . Note: The shorter, unnamed markup will not work if the title value contain an equals () character.
                show{{collapse top|title=This is the title text}}{{collapse top|This is the title text}}=
                |warning=yes
                Will display a default warning line under the main title which reads "The following is a closed debate. " Any value supplied to this parameter will have this effect (i.e. will not work as expected).
                Please do not modify it.|warning=no
                |2= or second unnamed parameter
                This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use in this case, though doing so is harmless.
                |warning=yes
                |left=yes
                Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. will not work as expected); nor is there a parameter.
                |left=no|=right
                |expand=yesor|collapse=no
                Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. and will not work as expected).
                |expand=no|collapse=yes
                |bg=
                Sets the background color of the collapsed material. Defaults to , a green hue. Named colors are listed at . For example, or (HTML hex color codes require the leading ).
                #CCFFCCList of colors{{collapse top|This is the title text|bg=#F0F2F5}}{{collapse top|This is the title text|bg=LightGrey}}#
                |fc=
                Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See , above, for details on color options.
                |bg=
                |border=
                Sets the width of the border line on the collapsed material. defaults to . For example, ; going much thicker than this is not very useful.
                1px{{collapse top|border=2px}}
                |b-color=
                Sets the border color. defaults to (). See , above, for details on color options.
                Silver#C0C0C0|bg=
                |padding=
                Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to .
                0.6em
                |width=
                Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. , or in relative units, e.g. . Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
                |width=50%em|width=30em
                |border2=
                Sets the properties of the border of the box that appears when template is expanded; defaults to (there is no provision to change from a solid line). For example, (only width or color will be changed if only one value is supplied). See , above, for details on color options.
                1px Silver{{collapse top|border2=2px}}|bg=
                |bg2=
                Sets the background color of the box that appears when template is expanded; defaults to (). See , above, for details on color options.
                White#FFFFFF|bg=
                |indent=
                Indents the box from the left of the page. Defaults to no indentation. Each in talk page markup is approximately equivalent to of indent (e.g., to match indentation level, use . You can also use a percentage value. Pixel-based values should be avoided (see , above, for why).
                :1.6em::::|indent=6.4em|width=
                |clear=
                In some situations you may not want the default CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use , , or , as needed.
                clear: both;|clear=none|clear=right|clear=left

                Examples
                • Adding a box title (if omitted, default is 'Extended content') –
                • {{collapse top|This is the title text}}
                  Extended content

                  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                  Template loop detected: Template:Collapse bottom

                  • Archiving a section: the markup below:
                  <syntaxhighlight lang="wikitext">
                  This is the title text

                  Sample contents text </syntaxhighlight> produces:

                  Template loop detected: Template:Collapse bottom
                  Extended content

                  Section header

                  Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

                  <syntaxhighlight lang="wikitext">
                  CollapsingHidden contentArticle namespace
                • {{}}
                • collapse
                • {{}}
                • collapsible list
                  • {{}}
                  • collapse top
                  • {{}}
                  • collapse bottom
                  • {{}}
                  • hidden
                    • {{}}
                    • hidden begin
                    • {{}}
                    • hidden endInfoboxes
                    • {{}}
                    • collapsed infobox section begin
                    • {{}}
                    • collapsed infobox section endNavigation templates
                    • {{}}
                    • sidebar with collapsible lists
                    • {{}}
                    • navbox with collapsible groupsTalk namespace
                    • {{}}
                    • hidden archive top
                    • {{}}
                    • hidden archive bottom
                      • v
                      • t
                      • e

                        This template in conjunction with the and relevant advice at . It should not be used by involved parties to end a discussion over the objections of other editors. See .

                        should only be used by uninvolved editorstalk page guidelinesWP:RefactoringWP:SUPERHAT

                        Do not hide content in articles. This violates the and guidelines.

                        Wikipedia:Manual of Style § Scrolling lists and collapsible contentWikipedia:Accessibility

                        Usage

                        Place (or ), and (or ), around the text to be collapsed. For example:

                        {{}}collapse top{{}}cot{{}}collapse bottom{{}}cob
                        Section header

                        Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

                        Section header

                        Sample contents text Template loop detected: Template:Collapse bottom


                        TemplateData

                        This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

                        TemplateData for Collapse bottom

                        Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

                        Template parameters

                        ParameterDescriptionTypeStatus
                        Title1 title heading header reason result

                        Main title of collapsed box

                        Example
                        This is the title text
                        Unknownrequired
                        Custom warning line2

                        Will override the standard warning line, and make the 'warning' parameter unnecessary

                        Example
                        This is a custom warning line
                        Stringoptional
                        Indent (px or em)indent

                        Indents the box from the left of the page

                        Auto value
                        0px
                        Unknownoptional
                        expandexpand collapse

                        Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

                        Example
                        true
                        Auto value
                        Stringoptional
                        Border width (px)border

                        Sets the width of the border line on the collapsed material

                        Default
                        1px
                        Example
                        2px
                        Auto value
                        Unknownoptional
                        Border colorb-color

                        Sets the border color

                        Default
                        Silver
                        Example
                        #F0F2F5
                        Unknownoptional
                        Template width (% or em)width

                        Sets the width of the overall template

                        Example
                        50%
                        Unknownoptional
                        Collapsed material background colorbg

                        Sets the background color of the collapsed material

                        Default
                        #CFC
                        Example
                        #F0F2F5
                        Unknownoptional
                        Alight along the left margin (true or blank)left

                        Will align the 'parameter 1 title' along the left margin

                        Example
                        true
                        Stringoptional
                        Title font colorfc

                        Sets the font color of the title of the collapsible bar

                        Default
                        Black
                        Example
                        #F0F2F5
                        Unknownoptional
                        Warning (true or blank)warning

                        Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

                        Example
                        true
                        Unknownoptional
                        Expanded box border size & colorborder2

                        Sets the border of the box that appears when template is expanded

                        Default
                        1px silver
                        Example
                        2px
                        Unknownoptional
                        Padding (px)padding

                        Sets the padding on the collapsed material in the colored area

                        Default
                        8px
                        Example
                        16px
                        Unknownoptional
                        Expanded box colorbg2

                        Sets background of the box that appears when template is expanded

                        Default
                        white
                        Example
                        #F0F2F5
                        Unknownoptional

                        Redirects

                        To Collapse top:

                        To Collapse bottom:

                        See also

                        Template:Warchivenav

                        • Changing background color – {{collapse top|bg=#F0F2F5}}
                        WP:REPLYTOOL:{{}}collapse bottom
                        Extended content

                        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                        The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

                        This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

                        Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

                        Usage

                        Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

                        <syntaxhighlight lang="wikitext">
                        WarningThis template is used in MediaWiki:Protect-textapproximately 51,000 pages

                        /sandbox/testcasesuser subpagetalk page

                        The template (or ), and its paired template (or ), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template can be used instead.

                        {{}}collapse top{{}}cot{{}}collapse bottom{{}}cob{{}}collapse
                        This is the title text

                        Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

                        Section header

                        Sample contents text

                        Shortcuts
                        • {{}}
                        • Cot
                        • {{}}
                        • Cob
                          This is the title text

                          Sample contents text Template loop detected: Template:Collapse bottom


                          {{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

                          Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

                          Parameters

                          This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

                          |1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
                          Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
                          |warning=yes
                          Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
                          |2= or second unnamed parameter
                          This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
                          |left=yes
                          Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
                          |expand=yes or |collapse=no
                          Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
                          |bg=
                          Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
                          |fc=
                          Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
                          |border=
                          Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
                          |b-color=
                          Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
                          |padding=
                          Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
                          |width=
                          Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
                          |border2=
                          Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
                          |bg2=
                          Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
                          |indent=
                          Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
                          |clear=
                          In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

                          Examples

                          • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}

                          Template parameters

                          1titleheadingheaderreasonresult

                          Main title of collapsed box

                          Example
                          This is the title text
                          2

                          Will override the standard warning line, and make the 'warning' parameter unnecessary

                          Example
                          This is a custom warning line
                          indent

                          Indents the box from the left of the page

                          Auto value
                          0pxexpandcollapse

                          Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

                          Example
                          true
                          Auto value
                          border

                          Sets the width of the border line on the collapsed material

                          Default
                          1px
                          Example
                          2px
                          Auto value
                          b-color

                          Sets the border color

                          Default
                          Silver
                          Example
                          #F0F2F5
                          width

                          Sets the width of the overall template

                          Example
                          50%
                          bg

                          Sets the background color of the collapsed material

                          Default
                          #CFC
                          Example
                          #F0F2F5
                          left

                          Will align the 'parameter 1 title' along the left margin

                          Example
                          true
                          fc

                          Sets the font color of the title of the collapsible bar

                          Default
                          Black
                          Example
                          #F0F2F5
                          warning

                          Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

                          Example
                          true
                          border2

                          Sets the border of the box that appears when template is expanded

                          Default
                          1px silver
                          Example
                          2px
                          padding

                          Sets the padding on the collapsed material in the colored area

                          Default
                          8px
                          Example
                          16px
                          bg2

                          Sets background of the box that appears when template is expanded

                          Default
                          white
                          Example
                          #F0F2F5

                          Redirects

                          To Collapse top:

                        • {{}}
                        • cot
                        • {{}}
                        • ctop
                        • {{}}
                        • DAT

                          To Collapse bottom:

                        • {{}}
                        • cob
                        • {{}}
                        • cbot

                          See also
                        • {{}}
                        • collapse
                        • {{}}
                        • collapse top
                        • {{}} and {{}}
                        • discussion topdiscussion bottom
                        • {{}} and {{}}
                        • hidden archive tophidden archive bottom
                        • {{}} and {{}}
                        • hidden beginhidden end
                        • {{}}
                        • hidden
                        • {{}}
                        • collapsible list

                          </syntaxhighlight> The end result:

                          Template:Warchivenav
                          This is the title text

                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                          Template loop detected: Template:Collapse bottom

                          • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
                          Section header

                          Sample contents text

                          Template loop detected: Template:Collapse bottom


                          TemplateData
                          This is the for this template used by , and other tools. to see a monthly parameter usage report for this template based on this TemplateData.
                          TemplateDataTemplateWizardVisualEditorClick here

                          TemplateData for Collapse bottom

                          Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

                          This is the title text
                          The following is a closed discussion. Please do not modify it.

                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                          Template loop detected: Template:Collapse bottom

                          • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
                          Section header

                          Sample contents text </syntaxhighlight> The end result:

                          Template loop detected: Template:Collapse bottom
                          This is the title text
                          This is a custom warning line

                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                          Template loop detected: Template:Collapse bottom

                          • Aligning box title along left margin – {{collapse top|left=true}}
                          Extended content

                          Section header

                          Sample contents text </syntaxhighlight> must be rewritten as:

                          Template loop detected: Template:Collapse bottom
                          Extended content

                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                          Template loop detected: Template:Collapse bottom

                          • Changing background color – {{collapse top|bg=#F0F2F5}}
                          Extended content

                          Template loop detected: Template:Collapse bottom
                          • Archiving a section: the markup below:
                          • Extended content

                            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                            Template loop detected: Template:Collapse bottom

                            • Adding extra padding – {{collapse top|padding=5em}}
                            Extended content

                            Template loop detected: Template:Collapse bottom
                            • Adding extra padding –
                            • {{collapse top|padding=5em}}
                              Extended content

                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                              Template loop detected: Template:Collapse bottom

                              • Archiving a section: the markup below:
                              <syntaxhighlight lang="wikitext">
                              Extended content

                              Template loop detected: Template:Collapse bottom
                              • Changing background color –
                              • {{collapse top|bg=#F0F2F5}}
                                Extended content

                                Section header

                                Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

                                <syntaxhighlight lang="wikitext">
                                This is the title text

                                Template loop detected: Template:Collapse bottom
                                • Aligning box title along left margin –
                                • {{collapse top|left=true}}
                                  Section header

                                  Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

                                  This is the title text
                                  Please do not modify it.

                                  Template loop detected: Template:Collapse bottom
                                  • Adding a custom warning line –
                                  • {{collapse top|This is the title text|This is a custom warning line}}
                                    Section header

                                    Sample contents text Template loop detected: Template:Collapse bottom


                                    TemplateData

                                    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

                                    TemplateData for Collapse bottom

                                    Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

                                    Template parameters

                                    ParameterDescriptionTypeStatus
                                    Title1 title heading header reason result

                                    Main title of collapsed box

                                    Example
                                    This is the title text
                                    Unknownrequired
                                    Custom warning line2

                                    Will override the standard warning line, and make the 'warning' parameter unnecessary

                                    Example
                                    This is a custom warning line
                                    Stringoptional
                                    Indent (px or em)indent

                                    Indents the box from the left of the page

                                    Auto value
                                    0px
                                    Unknownoptional
                                    expandexpand collapse

                                    Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

                                    Example
                                    true
                                    Auto value
                                    Stringoptional
                                    Border width (px)border

                                    Sets the width of the border line on the collapsed material

                                    Default
                                    1px
                                    Example
                                    2px
                                    Auto value
                                    Unknownoptional
                                    Border colorb-color

                                    Sets the border color

                                    Default
                                    Silver
                                    Example
                                    #F0F2F5
                                    Unknownoptional
                                    Template width (% or em)width

                                    Sets the width of the overall template

                                    Example
                                    50%
                                    Unknownoptional
                                    Collapsed material background colorbg

                                    Sets the background color of the collapsed material

                                    Default
                                    #CFC
                                    Example
                                    #F0F2F5
                                    Unknownoptional
                                    Alight along the left margin (true or blank)left

                                    Will align the 'parameter 1 title' along the left margin

                                    Example
                                    true
                                    Stringoptional
                                    Title font colorfc

                                    Sets the font color of the title of the collapsible bar

                                    Default
                                    Black
                                    Example
                                    #F0F2F5
                                    Unknownoptional
                                    Warning (true or blank)warning

                                    Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

                                    Example
                                    true
                                    Unknownoptional
                                    Expanded box border size & colorborder2

                                    Sets the border of the box that appears when template is expanded

                                    Default
                                    1px silver
                                    Example
                                    2px
                                    Unknownoptional
                                    Padding (px)padding

                                    Sets the padding on the collapsed material in the colored area

                                    Default
                                    8px
                                    Example
                                    16px
                                    Unknownoptional
                                    Expanded box colorbg2

                                    Sets background of the box that appears when template is expanded

                                    Default
                                    white
                                    Example
                                    #F0F2F5
                                    Unknownoptional

                                    Redirects

                                    To Collapse top:

                                    To Collapse bottom:

                                    See also

                                    Template:Warchivenav

                                    • Adding extra padding – {{collapse top|padding=5em}}
                                    This is the title text

                                    Template loop detected: Template:Collapse bottom
                                    • Adding a standard warning line –
                                    • {{collapse top|This is the title text|warning=true}}
                                      Extended content

                                      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                      The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

                                      This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

                                      Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

                                      Usage

                                      Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

                                      <syntaxhighlight lang="wikitext">
                                      This is the title text

                                      Sample contents text

                                      Template loop detected: Template:Collapse bottom

                                      should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the , you need to remember to manually remove the colon () or colons it inserts at the start of each line to maintain proper indentation after replying.


                                      {{}}collapse bottomReply Tool:

                                      Note that the entirety of that gets transcluded is "": indeed, at eight characters, it is shorter than "" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

                                      {{}}collapse bottom|}</div>{{}}collapse bottom

                                      Parameters

                                      This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. , not ).

                                      1em1 em
                                      , , , , ,
                                      |1=|title=|reason=|header=|heading=|result=, or first unnamed parameter
                                      Will give the collapsed box a title, which occurs on the same line as the link and is always visible. It defaults to "Extended content". For example, or . Note: The shorter, unnamed markup will not work if the title value contain an equals () character.
                                      show{{collapse top|title=This is the title text}}{{collapse top|This is the title text}}=
                                      |warning=yes
                                      Will display a default warning line under the main title which reads "The following is a closed debate. " Any value supplied to this parameter will have this effect (i.e. will not work as expected).
                                      Please do not modify it.|warning=no
                                      |2= or second unnamed parameter
                                      This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use in this case, though doing so is harmless.
                                      |warning=yes
                                      |left=yes
                                      Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. will not work as expected); nor is there a parameter.
                                      |left=no|=right
                                      |expand=yesor|collapse=no
                                      Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. and will not work as expected).
                                      |expand=no|collapse=yes
                                      |bg=
                                      Sets the background color of the collapsed material. Defaults to , a green hue. Named colors are listed at . For example, or (HTML hex color codes require the leading ).
                                      #CCFFCCList of colors{{collapse top|This is the title text|bg=#F0F2F5}}{{collapse top|This is the title text|bg=LightGrey}}#
                                      |fc=
                                      Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See , above, for details on color options.
                                      |bg=
                                      |border=
                                      Sets the width of the border line on the collapsed material. defaults to . For example, ; going much thicker than this is not very useful.
                                      1px{{collapse top|border=2px}}
                                      |b-color=
                                      Sets the border color. defaults to (). See , above, for details on color options.
                                      Silver#C0C0C0|bg=
                                      |padding=
                                      Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to .
                                      0.6em
                                      |width=
                                      Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. , or in relative units, e.g. . Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
                                      |width=50%em|width=30em
                                      |border2=
                                      Sets the properties of the border of the box that appears when template is expanded; defaults to (there is no provision to change from a solid line). For example, (only width or color will be changed if only one value is supplied). See , above, for details on color options.
                                      1px Silver{{collapse top|border2=2px}}|bg=
                                      |bg2=
                                      Sets the background color of the box that appears when template is expanded; defaults to (). See , above, for details on color options.
                                      White#FFFFFF|bg=
                                      |indent=
                                      Indents the box from the left of the page. Defaults to no indentation. Each in talk page markup is approximately equivalent to of indent (e.g., to match indentation level, use . You can also use a percentage value. Pixel-based values should be avoided (see , above, for why).
                                      :1.6em::::|indent=6.4em|width=
                                      |clear=
                                      In some situations you may not want the default CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use , , or , as needed.
                                      clear: both;|clear=none|clear=right|clear=left

                                      Examples
                                      • Adding a box title (if omitted, default is 'Extended content') –
                                      • {{collapse top|This is the title text}}
                                        This is the title text

                                        Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

                                        This is the title text

                                        Sample contents text </syntaxhighlight> produces:

                                        Template loop detected: Template:Collapse bottom
                                        This is the title text

                                        Sample contents text Template loop detected: Template:Collapse bottom


                                        {{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

                                        Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

                                        Parameters

                                        This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

                                        |1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
                                        Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
                                        |warning=yes
                                        Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
                                        |2= or second unnamed parameter
                                        This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
                                        |left=yes
                                        Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
                                        |expand=yes or |collapse=no
                                        Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
                                        |bg=
                                        Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
                                        |fc=
                                        Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
                                        |border=
                                        Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
                                        |b-color=
                                        Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
                                        |padding=
                                        Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
                                        |width=
                                        Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
                                        |border2=
                                        Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
                                        |bg2=
                                        Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
                                        |indent=
                                        Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
                                        |clear=
                                        In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

                                        Examples

                                        • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
                                        CollapsingHidden contentArticle namespace
                                      • {{}}
                                      • collapse
                                      • {{}}
                                      • collapsible list
                                        • {{}}
                                        • collapse top
                                        • {{}}
                                        • collapse bottom
                                        • {{}}
                                        • hidden
                                          • {{}}
                                          • hidden begin
                                          • {{}}
                                          • hidden endInfoboxes
                                          • {{}}
                                          • collapsed infobox section begin
                                          • {{}}
                                          • collapsed infobox section endNavigation templates
                                          • {{}}
                                          • sidebar with collapsible lists
                                          • {{}}
                                          • navbox with collapsible groupsTalk namespace
                                          • {{}}
                                          • hidden archive top
                                          • {{}}
                                          • hidden archive bottom
                                            • v
                                            • t
                                            • e

                                              This template in conjunction with the and relevant advice at . It should not be used by involved parties to end a discussion over the objections of other editors. See .

                                              should only be used by uninvolved editorstalk page guidelinesWP:RefactoringWP:SUPERHAT

                                              Do not hide content in articles. This violates the and guidelines.

                                              Wikipedia:Manual of Style § Scrolling lists and collapsible contentWikipedia:Accessibility

                                              Usage

                                              Place (or ), and (or ), around the text to be collapsed. For example:

                                              {{}}collapse top{{}}cot{{}}collapse bottom{{}}cob
                                              This is the title text

                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                              Template loop detected: Template:Collapse bottom

                                              • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
                                              This is the title text
                                              The following is a closed discussion. Please do not modify it.

                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                              Template loop detected: Template:Collapse bottom

                                              • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
                                              WP:REPLYTOOL:{{}}collapse bottom
                                              This is the title text
                                              This is a custom warning line

                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                              Template loop detected: Template:Collapse bottom

                                              • Aligning box title along left margin – {{collapse top|left=true}}
                                              WarningThis template is used in MediaWiki:Protect-textapproximately 51,000 pages

                                              /sandbox/testcasesuser subpagetalk page

                                              The template (or ), and its paired template (or ), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template can be used instead.

                                              {{}}collapse top{{}}cot{{}}collapse bottom{{}}cob{{}}collapse
                                              Extended content

                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                              Template loop detected: Template:Collapse bottom

                                              • Changing background color – {{collapse top|bg=#F0F2F5}}
                                              Section header

                                              Sample contents text

                                              Shortcuts
                                              • {{}}
                                              • Cot
                                              • {{}}
                                              • Cob
                                                Extended content

                                                Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                                Template loop detected: Template:Collapse bottom

                                                • Adding extra padding – {{collapse top|padding=5em}}

                                                Template parameters

                                                1titleheadingheaderreasonresult

                                                Main title of collapsed box

                                                Example
                                                This is the title text
                                                2

                                                Will override the standard warning line, and make the 'warning' parameter unnecessary

                                                Example
                                                This is a custom warning line
                                                indent

                                                Indents the box from the left of the page

                                                Auto value
                                                0pxexpandcollapse

                                                Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

                                                Example
                                                true
                                                Auto value
                                                border

                                                Sets the width of the border line on the collapsed material

                                                Default
                                                1px
                                                Example
                                                2px
                                                Auto value
                                                b-color

                                                Sets the border color

                                                Default
                                                Silver
                                                Example
                                                #F0F2F5
                                                width

                                                Sets the width of the overall template

                                                Example
                                                50%
                                                bg

                                                Sets the background color of the collapsed material

                                                Default
                                                #CFC
                                                Example
                                                #F0F2F5
                                                left

                                                Will align the 'parameter 1 title' along the left margin

                                                Example
                                                true
                                                fc

                                                Sets the font color of the title of the collapsible bar

                                                Default
                                                Black
                                                Example
                                                #F0F2F5
                                                warning

                                                Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

                                                Example
                                                true
                                                border2

                                                Sets the border of the box that appears when template is expanded

                                                Default
                                                1px silver
                                                Example
                                                2px
                                                padding

                                                Sets the padding on the collapsed material in the colored area

                                                Default
                                                8px
                                                Example
                                                16px
                                                bg2

                                                Sets background of the box that appears when template is expanded

                                                Default
                                                white
                                                Example
                                                #F0F2F5

                                                Redirects

                                                To Collapse top:

                                              • {{}}
                                              • cot
                                              • {{}}
                                              • ctop
                                              • {{}}
                                              • DAT

                                                To Collapse bottom:

                                              • {{}}
                                              • cob
                                              • {{}}
                                              • cbot

                                                See also
                                              • {{}}
                                              • collapse
                                              • {{}}
                                              • collapse top
                                              • {{}} and {{}}
                                              • discussion topdiscussion bottom
                                              • {{}} and {{}}
                                              • hidden archive tophidden archive bottom
                                              • {{}} and {{}}
                                              • hidden beginhidden end
                                              • {{}}
                                              • hidden
                                              • {{}}
                                              • collapsible list

                                                </syntaxhighlight> must be rewritten as:

                                                Template:Warchivenav
                                                Extended content

                                                Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                                Template loop detected: Template:Collapse bottom

                                                • Archiving a section: the markup below:
                                                <syntaxhighlight lang="wikitext">
                                                Section header

                                                Sample contents text

                                                Template loop detected: Template:Collapse bottom


                                                TemplateData
                                                This is the for this template used by , and other tools. to see a monthly parameter usage report for this template based on this TemplateData.
                                                TemplateDataTemplateWizardVisualEditorClick here

                                                TemplateData for Collapse bottom

                                                Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

                                                Extended content

                                                Section header

                                                Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> must be rewritten as:

                                                <syntaxhighlight lang="wikitext">
                                                Section header

                                                Sample contents text </syntaxhighlight> The end result:

                                                Template loop detected: Template:Collapse bottom
                                                Section header

                                                Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> The end result:

                                                Extended content

                                                Section header

                                                Sample contents text </syntaxhighlight> must be rewritten as:

                                                Template loop detected: Template:Collapse bottom
                                                Section header

                                                Sample contents text Template loop detected: Template:Collapse bottom


                                                TemplateData

                                                This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

                                                TemplateData for Collapse bottom

                                                Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

                                                Template parameters

                                                ParameterDescriptionTypeStatus
                                                Title1 title heading header reason result

                                                Main title of collapsed box

                                                Example
                                                This is the title text
                                                Unknownrequired
                                                Custom warning line2

                                                Will override the standard warning line, and make the 'warning' parameter unnecessary

                                                Example
                                                This is a custom warning line
                                                Stringoptional
                                                Indent (px or em)indent

                                                Indents the box from the left of the page

                                                Auto value
                                                0px
                                                Unknownoptional
                                                expandexpand collapse

                                                Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

                                                Example
                                                true
                                                Auto value
                                                Stringoptional
                                                Border width (px)border

                                                Sets the width of the border line on the collapsed material

                                                Default
                                                1px
                                                Example
                                                2px
                                                Auto value
                                                Unknownoptional
                                                Border colorb-color

                                                Sets the border color

                                                Default
                                                Silver
                                                Example
                                                #F0F2F5
                                                Unknownoptional
                                                Template width (% or em)width

                                                Sets the width of the overall template

                                                Example
                                                50%
                                                Unknownoptional
                                                Collapsed material background colorbg

                                                Sets the background color of the collapsed material

                                                Default
                                                #CFC
                                                Example
                                                #F0F2F5
                                                Unknownoptional
                                                Alight along the left margin (true or blank)left

                                                Will align the 'parameter 1 title' along the left margin

                                                Example
                                                true
                                                Stringoptional
                                                Title font colorfc

                                                Sets the font color of the title of the collapsible bar

                                                Default
                                                Black
                                                Example
                                                #F0F2F5
                                                Unknownoptional
                                                Warning (true or blank)warning

                                                Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

                                                Example
                                                true
                                                Unknownoptional
                                                Expanded box border size & colorborder2

                                                Sets the border of the box that appears when template is expanded

                                                Default
                                                1px silver
                                                Example
                                                2px
                                                Unknownoptional
                                                Padding (px)padding

                                                Sets the padding on the collapsed material in the colored area

                                                Default
                                                8px
                                                Example
                                                16px
                                                Unknownoptional
                                                Expanded box colorbg2

                                                Sets background of the box that appears when template is expanded

                                                Default
                                                white
                                                Example
                                                #F0F2F5
                                                Unknownoptional

                                                Redirects

                                                To Collapse top:

                                                To Collapse bottom:

                                                See also

                                                Template:Warchivenav

                                                • Archiving a section: the markup below:
                                                <syntaxhighlight lang="wikitext">
                                                Extended content

                                                Template loop detected: Template:Collapse bottom
                                                • Archiving a section: the markup below:
                                                • Extended content

                                                  Section header

                                                  Sample contents text

                                                  The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

                                                  This template should only be used by uninvolved editors in conjunction with the talk page guidelines and relevant advice at WP:Refactoring. It should not be used by involved parties to end a discussion over the objections of other editors. See WP:SUPERHAT.

                                                  Do not hide content in articles. This violates the Wikipedia:Manual of Style § Scrolling lists and collapsible content and Wikipedia:Accessibility guidelines.

                                                  Usage

                                                  Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

                                                  <syntaxhighlight lang="wikitext">
                                                  Extended content

                                                  Template loop detected: Template:Collapse bottom
                                                  • Adding extra padding –
                                                  • {{collapse top|padding=5em}}
                                                    This is the title text

                                                    Sample contents text Template loop detected: Template:Collapse bottom</syntaxhighlight> produces:

                                                    Extended content

                                                    Template loop detected: Template:Collapse bottom
                                                    • Changing background color –
                                                    • {{collapse top|bg=#F0F2F5}}
                                                      This is the title text

                                                      Sample contents text Template loop detected: Template:Collapse bottom


                                                      {{collapse bottom}} should always be placed on its own line. Do not place any characters before the template on this line. This means that if you use the Reply Tool, you need to remember to manually remove the colon (:) or colons it inserts at the start of each line to maintain proper indentation after replying.

                                                      Note that the entirety of {{collapse bottom}} that gets transcluded is "|}</div>": indeed, at eight characters, it is shorter than "{{collapse bottom}}" (nineteen characters)! It's not that complicated, it is just easier to keep track of which template concludes which collapsed block when editing a page's source.

                                                      Parameters

                                                      This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. 1em, not 1 em).

                                                      |1=, |title=, |reason=, |header=, |heading=, |result=, or first unnamed parameter
                                                      Will give the collapsed box a title, which occurs on the same line as the show link and is always visible. It defaults to "Extended content". For example, {{collapse top|title=This is the title text}} or {{collapse top|This is the title text}}. Note: The shorter, unnamed markup will not work if the title value contain an equals (=) character.
                                                      |warning=yes
                                                      Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it." Any value supplied to this parameter will have this effect (i.e. |warning=no will not work as expected).
                                                      |2= or second unnamed parameter
                                                      This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use |warning=yes in this case, though doing so is harmless.
                                                      |left=yes
                                                      Will align the title along the left margin. By default, text is centered, specifically between the left edge of the green box and the left edge of the "show" link. Any value will enable this parameter (i.e. |left=no will not work as expected); nor is there a |right= parameter.
                                                      |expand=yes or |collapse=no
                                                      Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. |expand=no and |collapse=yes will not work as expected).
                                                      |bg=
                                                      Sets the background color of the collapsed material. Defaults to #CCFFCC, a green hue. Named colors are listed at List of colors. For example, {{collapse top|This is the title text|bg=#F0F2F5}} or {{collapse top|This is the title text|bg=LightGrey}} (HTML hex color codes require the leading #).
                                                      |fc=
                                                      Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See |bg=, above, for details on color options.
                                                      |border=
                                                      Sets the width of the border line on the collapsed material. defaults to 1px. For example, {{collapse top|border=2px}}; going much thicker than this is not very useful.
                                                      |b-color=
                                                      Sets the border color. defaults to Silver (#C0C0C0). See |bg=, above, for details on color options.
                                                      |padding=
                                                      Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to 0.6em.
                                                      |width=
                                                      Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. |width=50%, or in relative em units, e.g. |width=30em. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).
                                                      |border2=
                                                      Sets the properties of the border of the box that appears when template is expanded; defaults to 1px Silver (there is no provision to change from a solid line). For example, {{collapse top|border2=2px}} (only width or color will be changed if only one value is supplied). See |bg=, above, for details on color options.
                                                      |bg2=
                                                      Sets the background color of the box that appears when template is expanded; defaults to White (#FFFFFF). See |bg=, above, for details on color options.
                                                      |indent=
                                                      Indents the box from the left of the page. Defaults to no indentation. Each : in talk page markup is approximately equivalent to 1.6em of indent (e.g., to match :::: indentation level, use |indent=6.4em. You can also use a percentage value. Pixel-based values should be avoided (see |width=, above, for why).
                                                      |clear=
                                                      In some situations you may not want the default clear: both; CSS to apply, which puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use |clear=none, |clear=right, or |clear=left, as needed.

                                                      Examples

                                                      • Adding a box title (if omitted, default is 'Extended content') – {{collapse top|This is the title text}}
                                                      This is the title text

                                                      Template loop detected: Template:Collapse bottom
                                                      • Aligning box title along left margin –
                                                      • {{collapse top|left=true}}
                                                        This is the title text

                                                        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

                                                        Template loop detected: Template:Collapse bottom

                                                        • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
                                                        This is the title text
                                                        Please do not modify it.

                                                        Template loop detected: Template:Collapse bottom
                                                        • Adding a custom warning line –
                                                        • {{collapse top|This is the title text|This is a custom warning line}}
                                                          The following is a closed discussion.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          This is a custom warning line
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <syntaxhighlight lang="wikitext">
                                                          <syntaxhighlight lang="wikitext">
                                                          <syntaxhighlight lang="wikitext">
                                                          ParameterDescriptionTypeStatus
                                                          Title Unknownrequired
                                                          Custom warning lineStringoptional
                                                          Indent (px or em)Unknownoptional
                                                          expand Stringoptional
                                                          Border width (px)Unknownoptional
                                                          Border colorUnknownoptional
                                                          Template width (% or em)Unknownoptional
                                                          Collapsed material background colorUnknownoptional
                                                          Alight along the left margin (true or blank)Stringoptional
                                                          Title font colorUnknownoptional
                                                          Warning (true or blank)Unknownoptional
                                                          Expanded box border size & colorUnknownoptional
                                                          Padding (px)Unknownoptional
                                                          Expanded box colorUnknownoptional
                                                          <syntaxhighlight lang="wikitext">
                                                          , and on .Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's or subpages, or in your own . The tested changes can be added to this page in a single edit. Please discuss changes on the before implementing them.
                                                          These templates don't work properly when you are using the 2021 Reply Tool (). Specifically, any text after the collapsible box disappears. This is because the Reply Tool inserts indentation colons () to each line of your response, and needs to be placed on its own line, with no characters preceding it on that line. One simple workaround: post your reply anyway, then edit your post to remove the erring colon, and the template will start to work.
                                                          Collapsible templates
                                                          Help:
                                                          Guideline:
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          The following is a closed discussion.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          This is a custom warning line
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <syntaxhighlight lang="wikitext">
                                                          <syntaxhighlight lang="wikitext">
                                                          ParameterDescriptionTypeStatus
                                                          Title Unknownrequired
                                                          Custom warning lineStringoptional
                                                          Indent (px or em)Unknownoptional
                                                          expand Stringoptional
                                                          Border width (px)Unknownoptional
                                                          Border colorUnknownoptional
                                                          Template width (% or em)Unknownoptional
                                                          Collapsed material background colorUnknownoptional
                                                          Alight along the left margin (true or blank)Stringoptional
                                                          Title font colorUnknownoptional
                                                          Warning (true or blank)Unknownoptional
                                                          Expanded box border size & colorUnknownoptional
                                                          Padding (px)Unknownoptional
                                                          Expanded box colorUnknownoptional
                                                          <syntaxhighlight lang="wikitext">
                                                          , and on .Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's or subpages, or in your own . The tested changes can be added to this page in a single edit. Please discuss changes on the before implementing them.
                                                          These templates don't work properly when you are using the 2021 Reply Tool (). Specifically, any text after the collapsible box disappears. This is because the Reply Tool inserts indentation colons () to each line of your response, and needs to be placed on its own line, with no characters preceding it on that line. One simple workaround: post your reply anyway, then edit your post to remove the erring colon, and the template will start to work.
                                                          Collapsible templates
                                                          Help:
                                                          Guideline:
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          The following is a closed discussion.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          This is a custom warning line
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                                                          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <syntaxhighlight lang="wikitext">
                                                          <syntaxhighlight lang="wikitext">
                                                          ParameterDescriptionTypeStatus
                                                          Title Unknownrequired
                                                          Custom warning lineStringoptional
                                                          Indent (px or em)Unknownoptional
                                                          expand Stringoptional
                                                          Border width (px)Unknownoptional
                                                          Border colorUnknownoptional
                                                          Template width (% or em)Unknownoptional
                                                          Collapsed material background colorUnknownoptional
                                                          Alight along the left margin (true or blank)Stringoptional
                                                          Title font colorUnknownoptional
                                                          Warning (true or blank)Unknownoptional
                                                          Expanded box border size & colorUnknownoptional
                                                          Padding (px)Unknownoptional
                                                          Expanded box colorUnknownoptional
                                                          ParameterDescriptionTypeStatus
                                                          Title Unknownrequired
                                                          Custom warning lineStringoptional
                                                          Indent (px or em)Unknownoptional
                                                          expand Stringoptional
                                                          Border width (px)Unknownoptional
                                                          Border colorUnknownoptional
                                                          Template width (% or em)Unknownoptional
                                                          Collapsed material background colorUnknownoptional
                                                          Alight along the left margin (true or blank)Stringoptional
                                                          Title font colorUnknownoptional
                                                          Warning (true or blank)Unknownoptional
                                                          Expanded box border size & colorUnknownoptional
                                                          Padding (px)Unknownoptional
                                                          Expanded box colorUnknownoptional