<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.pc-supp.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ACollapse_top%2Fdoc</id>
	<title>Шаблон:Collapse top/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pc-supp.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ACollapse_top%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.pc-supp.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Collapse_top/doc&amp;action=history"/>
	<updated>2026-11-27T17:25:25Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.pc-supp.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Collapse_top/doc&amp;diff=722&amp;oldid=prev</id>
		<title>Alexandre: Новая страница: «{{docpage}}  The {{tlx|collapse top}} template (or {{tlx|cot}}), and its paired template {{tlx|collapse bottom}} (or {{tlx|cob}}), are used for placing a collapse…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.pc-supp.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Collapse_top/doc&amp;diff=722&amp;oldid=prev"/>
		<updated>2018-04-25T10:41:48Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{docpage}}  The {{tlx|collapse top}} template (or {{tlx|cot}}), and its paired template {{tlx|collapse bottom}} (or {{tlx|cob}}), are used for placing a collapse…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{docpage}}&lt;br /&gt;
&lt;br /&gt;
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 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 &amp;quot;Refactoring&amp;quot; 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;
Do not hide content in articles. This violates the &amp;quot;Scrolling lists and collapsible content&amp;quot; and &amp;quot;Accessibility&amp;quot; guidelines.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Place {{tlx|collapse top}} (or {{tlx|cot}}), and {{tlx|collapse bottom}} (or {{tlx|cob}}), 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;
Sample contents text&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;
Sample contents text&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'. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|title=This is the title text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&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; For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|warning=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;positional parameter 2: This is optional warning-line text. It will override the standard warning line above, and make the 'warning' parameter unnecessary. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|This is a custom warning line}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&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. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|left=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&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. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|expand=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;bg: Sets the background color of the collapsed material. Defaults to #CFC - a pleasant green. Other colors available from &amp;quot;List of colors&amp;quot;. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|bg=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;fc: Sets the font color of the title of the collapsible bar. Defaults to Black. Other colors available from &amp;quot;List of colors&amp;quot;. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|fc=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;border: Sets the width of the border line on the collapsed material. defaults to 1px. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|border=2px}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;b-color: Sets the border color. defaults to silver. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|b-color=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;padding: Sets the padding on the collapsed material in the colored area. Defaults to 8px. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|padding=16px}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;width: Sets the width of the overall template. Use {{para|width|50%}}, not {{para|Width|50%}} as upper case &amp;quot;W&amp;quot; doesn't work. Or &amp;lt;code&amp;gt;|width=200px&amp;lt;/code&amp;gt; (if you omit &amp;quot;px&amp;quot; it 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; (there is no provision to change from a solid line). For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|border2=2px}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;bg2: Sets background of the box that appears when template is expanded; defaults to white. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|bg2=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&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;
;clear: 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;
== Examples ==&lt;br /&gt;
* Adding a box title (if omitted, default is 'Extended content') - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|This is the title text}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Adding a standard warning line - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|warning=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|This is the title text|warning=true}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Adding a custom warning line - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|This is the title text|This is a custom warning line}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|This is the title text|This is a custom warning line}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Aligning box title along left margin - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|left=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;!-- or {{collapse top|left=true}}--&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|left=true}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Changing background color - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|bg=#F0F2F5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|bg=#F0F2F5}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Adding extra padding - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{collapse top|padding=40px}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{collapse top|padding=40px}}&lt;br /&gt;
{{lorem ipsum}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
* Archiving a section: the markup below:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapse top}}&lt;br /&gt;
==Section header==&lt;br /&gt;
Sample contents text&lt;br /&gt;
{{collapse bottom}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
must be rewritten as: &lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapse top|Section header}}&lt;br /&gt;
Sample contents text&lt;br /&gt;
{{collapse bottom}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
The end result:&lt;br /&gt;
{{collapse top|Section header}}&lt;br /&gt;
Sample contents text&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Категория:Шаблоны:Сворачиваемые блоки]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alexandre</name></author>
		
	</entry>
</feed>