Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 17:14, 15 November 2017 by commons>Rob984 (Undo revision 267587878 by Kiware Ombeni (talk) Vandalism, please protect this page)
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Collapse top/doc.

The collapse template is used for placing collapse boxes around discussions.

Usage

{{Collapse top}}

Place {{Collapse top}} and {{Collapse bottom}} around the text to be collapsed. If an entire section is being archived, remove the section header and add it as the first parameter of the template. This keeps the section header from showing in the TOC.

Template parameters

ParameterDescriptionDefaultStatus
1
title
reason
header
heading
headerThese parameters give the main title of collapsed box, which occurs on the same line as the show link and is always visible.emptyoptional
warningshow warning textIf this parameter evaluates to true (i.e. is not 0, false, or empty) it will display a default warning line under the main title which reads “The following is an archived debate. Please do not modify it.” (except if parameter #2 is given).emptyoptional
2custom warning textThis is optional warning-line text. It will override the standard warning line above, and obviate the need for setting the 'warning' parameter.emptyoptional
expandexpandIf this parameter evaluates to true (i.e. is not 0, false, or empty) it will leave the material uncollapsed with the border and coloring. Default is to collapse the material. However, when previewing edits, content will always display as uncollapsed; this is often helpful, but also often confusing!emptyoptional
bgbackground colorSets the background color of the collapsed material#CFCoptional
borderborder widthSets the width of the border line on the collapsed material. (in px)1optional
b-colorborder colorSets the border color.silveroptional
paddingpaddingSets the padding on the collapsed material in the colored area. (in px)8optional
widthbox widthSets the width of the overall template (in px)emptyoptional

Additional information

The template is intended to be used in the following namespaces: all talk namespaces and noticeboards

The template is intended to be used by the following user groups: all users

See also

Localization

العربية  Deutsch  English  français  हिन्दी  македонски  Nederlands

This template makes use of {{Autotranslate}} and the translate extension.


Examples

Simple

{{Collapse top|This is the title text}}
{{lorem ipsum}}
{{Collapse bottom}}

Changing background color

{{Collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}}

Changing border color

{{cot|b-color=#ff0000}}

Adding extra padding

{{cot|padding=40px}}

Adding a warning line

{{cot|default warning|warning=1}}
{{cot|custom warning|this is a custom warning line}}

Archiving a section

{{cot}}
==section header==
text
{{cob}}

rewritten as

{{cot|section header}}
text
{{cob}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.