<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.detectiveconanworld.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse_top</id>
	<title>Template:Collapse top - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.detectiveconanworld.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse_top"/>
	<link rel="alternate" type="text/html" href="https://www.detectiveconanworld.com/wiki/index.php?title=Template:Collapse_top&amp;action=history"/>
	<updated>2026-04-16T17:11:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://www.detectiveconanworld.com/wiki/index.php?title=Template:Collapse_top&amp;diff=110373&amp;oldid=prev</id>
		<title>Chekhov MacGuffin: recreating this template since it was one of the ones I was using for minor gadgets</title>
		<link rel="alternate" type="text/html" href="https://www.detectiveconanworld.com/wiki/index.php?title=Template:Collapse_top&amp;diff=110373&amp;oldid=prev"/>
		<updated>2014-03-09T02:32:42Z</updated>

		<summary type="html">&lt;p&gt;recreating this template since it was one of the ones I was using for minor gadgets&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;margin-left:{{{indent|0px}}}&amp;quot;&amp;gt;&amp;lt;!-- NOTE: width renders incorrectly if added to main STYLE section--&amp;gt;&lt;br /&gt;
{| &amp;lt;!-- Template:Collapse top --&amp;gt; class=&amp;quot;navbox collapsible {{{{{|safesubst:}}}#if:{{{expand|}}}||collapsed}}&amp;quot; style=&amp;quot;background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin-top: 0.2em; {{{{{|safesubst:}}}#if:{{{width|}}}|width:{{{width}}};}}&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: {{{bg|#CFC}}}; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; font-size:112%; color: {{{fc|black}}};&amp;quot; | {{{1|{{{title|{{{reason|{{{header|{{{heading|Extended content}}} }}} }}} }}} }}}   &lt;br /&gt;
{{{{{|safesubst:}}}#if:{{{warning|{{{2|}}}}}}&lt;br /&gt;
|{{{{{|safesubst:}}}!}}-&lt;br /&gt;
{{{{{|safesubst:}}}!}} style=&amp;quot;text-align:center; font-style:italic;&amp;quot; {{{{{|safesubst:}}}!}} {{{2|The following is a closed debate. {{strongbad|Please do not modify it.}} }}} }}&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border: solid {{{border2|1px silver}}}; padding: {{{padding|8px}}}; background-color: {{{bg2|white}}}; font-size:112%;&amp;quot; {{{{{|safesubst:}}}!}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The {{tlx|collapse top}} template (a.k.a. {{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 such as tables.  For very simple content, the one-piece template {{tlx|collapse}} can be used instead. &lt;br /&gt;
&lt;br /&gt;
These templates should only be used in accordance with the [[Wikipedia:Refactoring]] guideline; they should never be used to end a discussion over the objections of other editors, except in cases of unambiguous disruptive editing.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Place {{tlx|collapse top}} and {{tlx|collapse bottom}} around the text to be collapsed. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Collapse top|title=This is the title text}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{Collapse bottom}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
produces:&lt;br /&gt;
{{Collapse top|title=This is the title text}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{Collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
This template takes the following parameters, all of which are optional&lt;br /&gt;
&lt;br /&gt;
;positional parameter 1, named parameter 'title': These parameters give the main title of collapsed box, which occurs on the same line as the ''show'' link and is always visible. It defaults to 'Extended content'.&lt;br /&gt;
;warning: If this parameter evaluates to true (i.e. is not empty) it will display a default warning line under the main title which reads &amp;quot;The following is a closed debate. {{strongbad|Please do not modify it.}}&amp;quot;&lt;br /&gt;
;positional parameter 2: This is optional warning-line text. It will override the standard warning line above, and obviate the need for setting the 'warning' parameter. &lt;br /&gt;
;left: If this parameter evaluates to true (i.e. is not empty) it will align the 'parameter 1 title' along the left margin. Text aligns centered between the left margin and the left bracket of the left ''show'' link by default.   &lt;br /&gt;
;expand: If this parameter evaluates to true (i.e. is not empty) it will leave the material uncollapsed with the border and coloring. Default is to collapse the material.&lt;br /&gt;
;bg: Sets the background color of the collapsed material. Defaults to #CFC - a pleasant green. Other colors available from [[List of colors]].&lt;br /&gt;
;fc: Sets the font color of the title of the collapsible bar. Defaults to Black. Other colors available from [[List of colors]].&lt;br /&gt;
;border: Sets the width of the border line on the collapsed material. defaults to 1px.&lt;br /&gt;
;b-color: Sets the border color. defaults to silver.&lt;br /&gt;
;padding: Sets the padding on the collapsed material in the colored area. defaults to 8px&lt;br /&gt;
;width: Sets the width of the overall template. Use {{para|width|50%}}, not {{para|Width|50%}} (Upper case &amp;quot;W&amp;quot; doesn't work) or &amp;lt;code&amp;gt;|width=200&amp;lt;/code&amp;gt; (omits &amp;quot;px&amp;quot; and doesn't work).&lt;br /&gt;
;border2: Sets the border of the box that appears when template is expanded; defaults to &amp;quot;1px silver&amp;quot; (no provision to change from a solid line)&lt;br /&gt;
;bg2: Sets background of the box that appears when template is expanded; defaults to white.&lt;br /&gt;
;indent: indents the box from the left of the page. Use: {{para|indent|50px}} not {{para|Indent|50px}} (Upper case &amp;quot;I&amp;quot; doesn't work). Defaults to &amp;quot;do not indent&amp;quot; (i.e. 0px). Each &amp;quot;:&amp;quot; in wiki-markup is approximately equivalent to 25px indent.&lt;br /&gt;
&lt;br /&gt;
If an entire section is being closed, remove the section header and add it as the first parameter of the template. This keeps the section header from showing in the TOC.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
*aligning title along left margin - &amp;lt;nowiki&amp;gt;{{Collapse top|left=true}} or {{cot|left=right}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
{{cot|left=right}}&lt;br /&gt;
Text&lt;br /&gt;
{{cob}}&lt;br /&gt;
*changing background color - &amp;lt;nowiki&amp;gt;{{Collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
{{cot|bg=#F0F2F5}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
*adding extra padding - &amp;lt;nowiki&amp;gt;{{cot|padding=40px}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
{{cot|padding=40px}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
*adding a warning line - &amp;lt;nowiki&amp;gt;{{cot|default warning|warning=1}}&amp;lt;/nowiki&amp;gt;, &amp;lt;nowiki&amp;gt;{{cot|custom warning|this is a custom warning line}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
{{cot|default warning|warning=1}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
{{cot|custom warning|this is a custom warning line}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{cob}}&lt;br /&gt;
*archiving a section&lt;br /&gt;
&amp;lt;pre&amp;gt;{{cot}}&lt;br /&gt;
==section header==&lt;br /&gt;
text&lt;br /&gt;
{{cob}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
rewritten as &lt;br /&gt;
&amp;lt;pre&amp;gt;{{cot|section header}}&lt;br /&gt;
text&lt;br /&gt;
{{cob}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{cot|section header}}&lt;br /&gt;
text&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
== Redirects ==&lt;br /&gt;
To Collapse top:&lt;br /&gt;
* {{tl|cot}}&lt;br /&gt;
* {{tl|DAT}}&lt;br /&gt;
To Collapse bottom:&lt;br /&gt;
* {{tl|cob}}&lt;br /&gt;
* {{tl|hab}}&lt;br /&gt;
* {{tl|hidden archive bottom}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|collapse}}&lt;br /&gt;
* {{#ifeq: {{BASEPAGENAME}} | Collapse top || {{tl|collapse top}} }}&lt;br /&gt;
* {{#ifeq: {{BASEPAGENAME}} | Collapse bottom || {{tl|collapse bottom}} }}&lt;br /&gt;
* {{tl|discussion top}}&lt;br /&gt;
* {{tl|hidden archive top}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chekhov MacGuffin</name></author>
		
	</entry>
</feed>