<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://dharmawiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse%2Fdoc</id>
	<title>Template:Collapse/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://dharmawiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://dharmawiki.org/index.php?title=Template:Collapse/doc&amp;action=history"/>
	<updated>2026-05-06T01:00:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>http://dharmawiki.org/index.php?title=Template:Collapse/doc&amp;diff=18313&amp;oldid=prev</id>
		<title>P16459: /* See also */</title>
		<link rel="alternate" type="text/html" href="http://dharmawiki.org/index.php?title=Template:Collapse/doc&amp;diff=18313&amp;oldid=prev"/>
		<updated>2018-12-28T10:11:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:11, 28 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l154&quot; &gt;Line 154:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 154:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Archival templates|{{PAGENAME}}]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Collapse templates|{{PAGENAME}}]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>P16459</name></author>
	</entry>
	<entry>
		<id>http://dharmawiki.org/index.php?title=Template:Collapse/doc&amp;diff=411&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://dharmawiki.org/index.php?title=Template:Collapse/doc&amp;diff=411&amp;oldid=prev"/>
		<updated>2016-06-30T10:21:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use|2,900+}}&lt;br /&gt;
&lt;br /&gt;
{{shortcut|Template:Cot|Template:Cob}}&lt;br /&gt;
&lt;br /&gt;
The {{tlx|collapse|&amp;lt;nowiki&amp;gt;folding text&amp;lt;/nowiki&amp;gt;}} template is used for placing collapse boxes around ''short'' discussions and bits of discussions. To fold ''long'' discussion threads, use {{tlx|Collapse top}}&amp;lt;code&amp;gt;... lots of text ...&amp;lt;/code&amp;gt;{{tlx|Collapse bottom}}.&lt;br /&gt;
&lt;br /&gt;
This template should only be used in accordance with the [[Wikipedia:refactoring]] guideline; it 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;
Do not hide content in articles. This violates the [[WP:Manual of Style#Scrolling lists and collapsible content]] and [[WP:Accessibility]] guidelines.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
'''''Note: {{Tl|Collapse}} needs to be [[Wikipedia:Substitution|substed]] in order for the time stamp functionality to work properly.'''''&lt;br /&gt;
&lt;br /&gt;
{{Tlx|Collapse|1&amp;amp;#61;&amp;lt;var&amp;gt;Discussion text to be put into box.&amp;lt;/var&amp;gt;|2&amp;amp;#61;&amp;lt;var&amp;gt;Optional custom heading&amp;lt;/var&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
It is definitely safest to use the named {{para|1}} and {{para|2}} parameters, because otherwise any &amp;quot;=&amp;quot; character will break the template.&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;code&amp;gt;bg&amp;lt;/code&amp;gt; parameter ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;bg&amp;lt;/code&amp;gt; parameter is optional. It changes the background color. Use [[Web color]] values (e.g. &amp;lt;code&amp;gt;#F0F2F5&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
;Example:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;code&amp;gt;{&amp;lt;nowiki /&amp;gt;{Collapse|1=&amp;lt;var&amp;gt;Discussion text to be put into box.&amp;lt;/var&amp;gt;|bg=#F0F2F5}&amp;lt;nowiki /&amp;gt;}&amp;lt;/code&amp;gt; creates:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|bg=#F0F2F5}}&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;code&amp;gt;padding&amp;lt;/code&amp;gt; parameter ===&lt;br /&gt;
The &amp;lt;code&amp;gt;padding&amp;lt;/code&amp;gt; parameter adjusts the amount of cell padding (defaults to &amp;lt;code&amp;gt;8px&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{&amp;lt;nowiki /&amp;gt;{Collapse|1=&amp;lt;var&amp;gt;Discussion text to be put into box.&amp;lt;/var&amp;gt;|padding=20px}&amp;lt;nowiki /&amp;gt;}&amp;lt;/code&amp;gt; creates the following (expand the box to see the border padding effect):&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|padding=20px}}&lt;br /&gt;
&lt;br /&gt;
=== Around header text ===&lt;br /&gt;
&lt;br /&gt;
When used with a section of text, include the section header in the collapsed portion of text. For example, given:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;background-color: lavender&amp;quot;&lt;br /&gt;
| Example text|&amp;amp;#x3d;&amp;amp;#x3d; [[Help:Section|Heading]] &amp;amp;#x3d;&amp;amp;#x3d;&amp;lt;br /&amp;gt;{{Lorem ipsum}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Replace with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{{Tlsp|Collapse|1&amp;amp;#61;{{Lorem ipsum}}|2&amp;amp;#61;[[Help:Section|Heading]]}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The &amp;lt;code&amp;gt;expand&amp;lt;/code&amp;gt; parameter===&lt;br /&gt;
Simply add {{para|expand|yes}} to have the box show up in expanded form with a &amp;quot;hide&amp;quot; link, instead of collapsed form with a &amp;quot;show&amp;quot; link. Other options: {{para|expand|}} &amp;lt;code&amp;gt;yes, y, expand, expanded, uncollapse, uncollapsed&amp;lt;/code&amp;gt;. Note: {{para|expand|no}} will fold the box (default).&lt;br /&gt;
&lt;br /&gt;
===The &amp;lt;code&amp;gt;clear&amp;lt;/code&amp;gt; parameter===&lt;br /&gt;
In some situations you may not want the default &amp;lt;code&amp;gt;clear: both;&amp;lt;/code&amp;gt; CSS to apply, with puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use {{para|clear|none}}, {{para|clear|right}}, or {{para|clear|left}}, as needed.&lt;br /&gt;
&lt;br /&gt;
===When content includes tables===&lt;br /&gt;
This template frequently breaks when used around content that consists of or includes [[Help:Table|wikitables]].  Such content can be made collapsible by using the {{tlx|collapse top}} and {{tlx|collapse bottom}} templates instead of {{tlx|collapse}}. &lt;br /&gt;
&lt;br /&gt;
If you want to collapse only the table and not other content, you can do this using wikitable parameters. See the [[Help:Collapsing#Collapsing tables by default|Collapsing tables]] guide for help.&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Creates a collapsible box that allows its content to be hidden or revealed on user's command. It is used to reduce clutter.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Contents&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Contents of the box&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text of title bar. Defaults to \&amp;quot;Extended contents\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;title&amp;quot;,&lt;br /&gt;
				&amp;quot;heading&amp;quot;,&lt;br /&gt;
				&amp;quot;header&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;Extended content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;expand&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Expanded by default?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Setting to \&amp;quot;yes, y, expand, uncollapse\&amp;quot;) will cause the box to show its contents by default. Any other value (and omitting this parameter) causes the box to be collapsed by default (its contents hidden).&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;border&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Border width&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Width of the outermost border. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \&amp;quot;px\&amp;quot;) Example: 2px.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;1px&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;bg&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title bar's color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Color of the title bar. Can be set any valid CSS color value but please take care that text would remain black.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;background&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;#CFC&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;padding&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Padding&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Width of the padding, the empty space between border and the contents. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \&amp;quot;px\&amp;quot;) Example: 2px.&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;8px&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;bg1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Outer background&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Color of the space between the inner and outer border. Can be set to any valid CSS color.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;transparent&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;b-color&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Outer border color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Color of the outer border. Can be any valid CSS color.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;silver&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;width&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Collapse box width.&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The width of the entire collapsed box.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;100%&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;center&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Center-align title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to any value, the title will be centered.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;fc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Font color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Font color for the title. Also sets the color of the [show]/[hide] link. Can be any valid CSS color&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Re-using at other wikis ==&lt;br /&gt;
This template depends upon having rules for the three classes (collapsible, uncollapsed, and collapsed) in the appropriate CSS files, and some related JavaScript installed.  &lt;br /&gt;
&lt;br /&gt;
This template transcludes {{tl|main other}} and {{tl|lorem ipsum}}, which should also be imported at the same time.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{Tl|collapse top}}&lt;br /&gt;
* {{Tl|collapse bottom}}&lt;br /&gt;
* {{tl|discussion top}}&lt;br /&gt;
* {{tl|archive top}}&lt;br /&gt;
* {{tl|hidden archive top}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Archival templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Collapse templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>