<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wikiminecraft.es/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-collapsibleTables.js</id>
	<title>MediaWiki:Gadget-collapsibleTables.js - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wikiminecraft.es/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-collapsibleTables.js"/>
	<link rel="alternate" type="text/html" href="https://wikiminecraft.es/index.php?title=MediaWiki:Gadget-collapsibleTables.js&amp;action=history"/>
	<updated>2026-05-01T15:35:51Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wikiminecraft.es/index.php?title=MediaWiki:Gadget-collapsibleTables.js&amp;diff=870&amp;oldid=prev</id>
		<title>Bth0: Página creada con «/**  * Collapsible tables  *  * @version 2.0.1 (2013-03-26)  * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js  * @author User:R. Koot  * @...»</title>
		<link rel="alternate" type="text/html" href="https://wikiminecraft.es/index.php?title=MediaWiki:Gadget-collapsibleTables.js&amp;diff=870&amp;oldid=prev"/>
		<updated>2014-04-10T04:46:57Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «/**  * Collapsible tables  *  * @version 2.0.1 (2013-03-26)  * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js  * @author &lt;a href=&quot;/index.php?title=Usuario:R._Koot&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Usuario:R. Koot (la página no existe)&quot;&gt;User:R. Koot&lt;/a&gt;  * @...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/**&lt;br /&gt;
 * Collapsible tables&lt;br /&gt;
 *&lt;br /&gt;
 * @version 2.0.1 (2013-03-26)&lt;br /&gt;
 * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js&lt;br /&gt;
 * @author [[User:R. Koot]]&lt;br /&gt;
 * @author [[User:Krinkle]]&lt;br /&gt;
 * @deprecated Since MediaWiki 1.20: Use class=&amp;quot;mw-collapsible&amp;quot; instead which&lt;br /&gt;
 * is supported in MediaWiki core.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
var autoCollapse = 2;&lt;br /&gt;
var collapseCaption = &amp;#039;hide&amp;#039;;&lt;br /&gt;
var expandCaption = &amp;#039;show&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
function collapseTable( tableIndex ) {&lt;br /&gt;
	var Button = document.getElementById( &amp;#039;collapseButton&amp;#039; + tableIndex );&lt;br /&gt;
	var Table = document.getElementById( &amp;#039;collapsibleTable&amp;#039; + tableIndex );&lt;br /&gt;
&lt;br /&gt;
	if ( !Table || !Button ) {&lt;br /&gt;
		return false;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	var Rows = Table.rows;&lt;br /&gt;
&lt;br /&gt;
	if ( Button.firstChild.data == collapseCaption ) {&lt;br /&gt;
		for ( var i = 1; i &amp;lt; Rows.length; i++ ) {&lt;br /&gt;
			Rows[i].style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;
		}&lt;br /&gt;
		Button.firstChild.data = expandCaption;&lt;br /&gt;
	} else {&lt;br /&gt;
		for ( var i = 1; i &amp;lt; Rows.length; i++ ) {&lt;br /&gt;
			Rows[i].style.display = Rows[0].style.display;&lt;br /&gt;
		}&lt;br /&gt;
		Button.firstChild.data = collapseCaption;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function createClickHandler( tableIndex ) {&lt;br /&gt;
	return function ( e ) {&lt;br /&gt;
		e.preventDefault();&lt;br /&gt;
		collapseTable( tableIndex );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function createCollapseButtons() {&lt;br /&gt;
	var tableIndex = 0;&lt;br /&gt;
	var NavigationBoxes = {};&lt;br /&gt;
	var Tables = document.getElementsByTagName( &amp;#039;table&amp;#039; );&lt;br /&gt;
&lt;br /&gt;
	for ( var i = 0; i &amp;lt; Tables.length; i++ ) {&lt;br /&gt;
		if ( $( Tables[i] ).hasClass( &amp;#039;collapsible&amp;#039; ) ) {&lt;br /&gt;
			/* only add button and increment count if there is a header row to work with */&lt;br /&gt;
			var HeaderRow = Tables[i].getElementsByTagName( &amp;#039;tr&amp;#039; )[0];&lt;br /&gt;
			if ( !HeaderRow ) {&lt;br /&gt;
				continue;&lt;br /&gt;
			}&lt;br /&gt;
			var Header = HeaderRow.getElementsByTagName( &amp;#039;th&amp;#039; )[0];&lt;br /&gt;
			if ( !Header ) {&lt;br /&gt;
				continue;&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			NavigationBoxes[tableIndex] = Tables[i];&lt;br /&gt;
			Tables[i].setAttribute( &amp;#039;id&amp;#039;, &amp;#039;collapsibleTable&amp;#039; + tableIndex );&lt;br /&gt;
&lt;br /&gt;
			var Button = document.createElement( &amp;#039;span&amp;#039; );&lt;br /&gt;
			var ButtonLink = document.createElement( &amp;#039;a&amp;#039; );&lt;br /&gt;
			var ButtonText = document.createTextNode( collapseCaption );&lt;br /&gt;
&lt;br /&gt;
			Button.style.styleFloat = &amp;#039;right&amp;#039;;&lt;br /&gt;
			Button.style.cssFloat = &amp;#039;right&amp;#039;;&lt;br /&gt;
			Button.style.fontWeight = &amp;#039;normal&amp;#039;;&lt;br /&gt;
			Button.style.textAlign = &amp;#039;right&amp;#039;;&lt;br /&gt;
			Button.style.width = &amp;#039;6em&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
			ButtonLink.style.color = Header.style.color;&lt;br /&gt;
			ButtonLink.setAttribute( &amp;#039;id&amp;#039;, &amp;#039;collapseButton&amp;#039; + tableIndex );&lt;br /&gt;
			$( ButtonLink ).on( &amp;#039;click&amp;#039;, createClickHandler( tableIndex ) );&lt;br /&gt;
			ButtonLink.appendChild( ButtonText );&lt;br /&gt;
&lt;br /&gt;
			Button.appendChild( document.createTextNode( &amp;#039;[&amp;#039; ) );&lt;br /&gt;
			Button.appendChild( ButtonLink );&lt;br /&gt;
			Button.appendChild( document.createTextNode( &amp;#039;]&amp;#039; ) );&lt;br /&gt;
&lt;br /&gt;
			Header.insertBefore( Button, Header.childNodes[0] );&lt;br /&gt;
			tableIndex++;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	for ( var i = 0; i &amp;lt; tableIndex; i++ ) {&lt;br /&gt;
		if ( $( NavigationBoxes[i] ).hasClass( &amp;#039;collapsed&amp;#039; ) ||&lt;br /&gt;
			( tableIndex &amp;gt;= autoCollapse &amp;amp;&amp;amp; $( NavigationBoxes[i] ).hasClass( &amp;#039;autocollapse&amp;#039; ) )&lt;br /&gt;
		) {&lt;br /&gt;
			collapseTable( i );&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$( createCollapseButtons );&lt;/div&gt;</summary>
		<author><name>Bth0</name></author>
	</entry>
</feed>