<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.culturaitaliana.org/w/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="https://www.culturaitaliana.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.culturaitaliana.org/w/index.php?title=Template:Collapse/doc&amp;action=history"/>
	<updated>2026-04-08T12:15:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://www.culturaitaliana.org/w/index.php?title=Template:Collapse/doc&amp;diff=5414&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.culturaitaliana.org/w/index.php?title=Template:Collapse/doc&amp;diff=5414&amp;oldid=prev"/>
		<updated>2020-07-16T22:48:07Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:48, 16 July 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.culturaitaliana.org/w/index.php?title=Template:Collapse/doc&amp;diff=5413&amp;oldid=prev</id>
		<title>en&gt;Kaganer: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://www.culturaitaliana.org/w/index.php?title=Template:Collapse/doc&amp;diff=5413&amp;oldid=prev"/>
		<updated>2017-10-20T15:22:15Z</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;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;
{{Template:Collapse Templates}}&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 [[w:en: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 [[w:en:WP:Manual of Style#Scrolling lists and collapsible content]] and [[w:en: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;
=== The &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; parameter ===&lt;br /&gt;
The &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; parameter allows the collapsed content to float to the left, right, or center of the page (defaults to &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;width = 100%&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&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;|float=center&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; creates the following:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|float=center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&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;|float=center|width=30em&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; creates the following:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|float=center|width=30em}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&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;|float=left|width=30em&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; creates the following:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|float=left|width=30em}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&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;|float=right|width=30em&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; creates the following:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|float=right|width=30em}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&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;|float=none|width=30em&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; creates the following:&lt;br /&gt;
&lt;br /&gt;
{{Collapse|1=Discussion text to be put into box.|float=none|width=30em}}&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. 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;
For MediaWiki versions ≥ 1.18, this template can simply be exported and then imported into another MediaWiki installation. Changes to the source code that will need to be made are:&lt;br /&gt;
:* &amp;lt;code&amp;gt;class=&amp;quot;collapsible&amp;lt;/code&amp;gt; needs to be changed to &amp;lt;code&amp;gt;class=&amp;quot;mw-collapsible&amp;lt;/code&amp;gt; (probably because the class had apparently been deprecated since ''MediaWiki v1.20'').&lt;br /&gt;
:* &amp;lt;code&amp;gt;|#default=collapsed}}&amp;lt;/code&amp;gt; changed to &amp;lt;code&amp;gt;|#default=mw-collapsed}}&amp;lt;/code&amp;gt;.&lt;br /&gt;
:* Some additional changes to the source code will need to be made in order for this template to become usable on the Main/Article (ns:0) [[mw:Help:Namespaces|namespace]].&lt;br /&gt;
&lt;br /&gt;
The toggle text can be edited at external Wiki's [[MediaWiki:Collapsible-expand]] and [[MediaWiki:Collapsible-collapse]] pages. Further information at [[mw:ResourceLoader/Modules#jquery.makeCollapsible|jquery.makeCollapsible module]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{Tl|collapse top}}&lt;br /&gt;
* {{Tl|collapse bottom}}&lt;br /&gt;
* {{tl|new collapse}}&lt;br /&gt;
* {{tl|collapse-mobile}}&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;
[[Category:Utility templates‎]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Kaganer</name></author>
	</entry>
</feed>