<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://72.14.177.54/skins/common/feed.css?207"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://72.14.177.54/iwe/?action=history&amp;feed=atom&amp;title=Help%3ACollapsing</id>
		<title>Help:Collapsing - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://72.14.177.54/iwe/?action=history&amp;feed=atom&amp;title=Help%3ACollapsing"/>
		<link rel="alternate" type="text/html" href="http://72.14.177.54/iwe/?title=Help:Collapsing&amp;action=history"/>
		<updated>2026-06-13T01:11:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.15.1</generator>

	<entry>
		<id>http://72.14.177.54/iwe/?title=Help:Collapsing&amp;diff=56667&amp;oldid=prev</id>
		<title>IWEWrestling2012 at 22:47, 4 April 2016</title>
		<link rel="alternate" type="text/html" href="http://72.14.177.54/iwe/?title=Help:Collapsing&amp;diff=56667&amp;oldid=prev"/>
				<updated>2016-04-04T22:47:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://72.14.177.54/iwe/?title=Help:Collapsing&amp;amp;diff=56667&amp;amp;oldid=56666&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>IWEWrestling2012</name></author>	</entry>

	<entry>
		<id>http://72.14.177.54/iwe/?title=Help:Collapsing&amp;diff=56666&amp;oldid=prev</id>
		<title>IWEWrestling2012:&amp;#32;Created page with '{{helpbox}} A '''collapsible table''' is a special kind of table whose contents can be hidden.&lt;br&gt; The basic collapsible table has at least one element with content, and a header…'</title>
		<link rel="alternate" type="text/html" href="http://72.14.177.54/iwe/?title=Help:Collapsing&amp;diff=56666&amp;oldid=prev"/>
				<updated>2016-04-04T22:46:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{helpbox}} A &amp;#39;&amp;#39;&amp;#39;collapsible table&amp;#39;&amp;#39;&amp;#39; is a special kind of table whose contents can be hidden.&amp;lt;br&amp;gt; The basic collapsible table has at least one element with content, and a header…&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{helpbox}}&lt;br /&gt;
A '''collapsible table''' is a special kind of table whose contents can be hidden.&amp;lt;br&amp;gt;&lt;br /&gt;
The basic collapsible table has at least one element with content, and a header. The header is not hideable, and should describe the contents within the table.&lt;br /&gt;
&lt;br /&gt;
====Simple example====&lt;br /&gt;
To make a table &amp;quot;collapsible&amp;quot;, you merely need to set the table's class as '''&amp;lt;code&amp;gt;collapsible&amp;lt;/code&amp;gt;'''. For a [show] or [hide] link to appear, the table's first row must be a header row, i.e. begin (in wikisyntax) with an exclamation mark (no header row means no text gets hidden, either). The use of the class &amp;lt;code&amp;gt;toccolours&amp;lt;/code&amp;gt; in the example below is merely for appearance; it is not needed for collapsing to function:&lt;br /&gt;
{| width=&amp;quot;80%&amp;quot; colspan=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=0&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;toccolours collapsible&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot;| This header never disappears.&lt;br /&gt;
|-&lt;br /&gt;
| This column... || ...and this column can be collapsed.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
{| class=&amp;quot;toccolours collapsible&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot;| This header never disappears.&lt;br /&gt;
|-&lt;br /&gt;
| This column... || ...and this column can be collapsed.&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
One-element example, initially expanded:&lt;br /&gt;
{| width=&amp;quot;80%&amp;quot; colspan=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=0&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;collapsible&amp;quot; border=1 width=&amp;quot;250&amp;quot;&lt;br /&gt;
!Never disappearing header&lt;br /&gt;
|-&lt;br /&gt;
|Text to appear/disappear&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;collapsible&amp;quot; border=1 width=&amp;quot;250&amp;quot;&lt;br /&gt;
!Never disappearing header&lt;br /&gt;
|-&lt;br /&gt;
|Text to appear/disappear&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Auto-collapsing tables====&lt;br /&gt;
You have two choices of auto-collapse. In addition to the &amp;lt;code&amp;gt;collapsible&amp;lt;/code&amp;gt; class, you can add either '''&amp;lt;code&amp;gt;collapsed&amp;lt;/code&amp;gt;''' or '''&amp;lt;code&amp;gt;autocollapse&amp;lt;/code&amp;gt;'''. The first always initially collapses a table. &amp;lt;code&amp;gt;autocollapse&amp;lt;/code&amp;gt; only initially collapses a table if there are at least two collapsible tables on a page.&lt;br /&gt;
{| width=&amp;quot;80%&amp;quot; colspan=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=0&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;toccolours collapsible autocollapse&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;left&amp;quot; | This autocollapse table&lt;br /&gt;
 will initially collapse because there are at least&lt;br /&gt;
 two collapsible tables on this page.&lt;br /&gt;
|-&lt;br /&gt;
| Column A || Column B&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;toccolours collapsible autocollapse&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;left&amp;quot; | This autocollapse table will initially collapse because there are at least two collapsible tables on this page.&lt;br /&gt;
|-&lt;br /&gt;
| Column A || Column B&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| width=&amp;quot;80%&amp;quot; colspan=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=0&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;toccolours collapsible collapsed&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | This table will always initially collapse&lt;br /&gt;
|-&lt;br /&gt;
| Column A || Column B&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;toccolours collapsible collapsed&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | This table will always initially collapse&lt;br /&gt;
|-&lt;br /&gt;
| Column A || Column B&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
One-element example, initially collapsed:&lt;br /&gt;
{| width=&amp;quot;80%&amp;quot; colspan=&amp;quot;2&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=0&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;collapsible collapsed&amp;quot; width=&amp;quot;250&amp;quot; border=1&lt;br /&gt;
!Never disappearing header&lt;br /&gt;
|-&lt;br /&gt;
|Text to appear/disappear &lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed&amp;quot; width=&amp;quot;250&amp;quot; border=1&lt;br /&gt;
!Never disappearing header&lt;br /&gt;
|-&lt;br /&gt;
|Text to appear/disappear &lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
====Sortable collapsible tables====&lt;br /&gt;
Collapsible tables can also be sorted using the &amp;quot;wikitable sortable&amp;quot; class. When you click an arrow at the top of a column, the contents of the column are shuffled appropriately. See the following example:&lt;br /&gt;
{| border=1 width=&amp;quot;60%&amp;quot;&lt;br /&gt;
!initially expanded!!initially collapsed&lt;br /&gt;
|- width=&amp;quot;50% valign=&amp;quot;top&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
{|class=&amp;quot;collapsible&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
!numbers&lt;br /&gt;
|- width=&amp;quot;50%&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!name!!number&lt;br /&gt;
|-&lt;br /&gt;
|a||123&lt;br /&gt;
|-&lt;br /&gt;
|b||6&lt;br /&gt;
|-&lt;br /&gt;
|c||45&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
{|class=&amp;quot;collapsible collapsed&amp;quot; width=&amp;quot;250&amp;quot;&lt;br /&gt;
!numbers&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!name!!number&lt;br /&gt;
|-&lt;br /&gt;
|a||123&lt;br /&gt;
|-&lt;br /&gt;
|b||6&lt;br /&gt;
|-&lt;br /&gt;
|c||45&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
For additional help on sorting, see [[Wikipedia:Help:Sorting|Help:Sorting on Wikipedia]].&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
=== Browser Notes ===&lt;br /&gt;
The collapsible tables code works best with IE or Opera. To ensure that it works correctly with Mozilla Firefox, remember to specify the width of the table. Tables which are initially collapsed in Firefox require the show link to be clicked twice in order to open if the width is not specified. In such cases, it is best to specify the desired width necessary for viewing when expanded.&lt;br /&gt;
&lt;br /&gt;
=== Implementation notes ===&lt;br /&gt;
Having the collapsing text on the same line or no header at all is not desired, so that is why an unhideable header row is required. Without a header row, there is a large potential for abuse since nothing would be known about the contents of the table.&lt;br /&gt;
&amp;lt;br&amp;gt;Also, the show/hide links are hard coded because being able to change the link would essentially let users make the link hidden, which is also undesirable. Having large amounts of unviewable text is a reason some search engines delete sites from their listings.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Help:Editing#Tables]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;/div&gt;</summary>
		<author><name>IWEWrestling2012</name></author>	</entry>

	</feed>