<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-switcher.js</id>
	<title>MediaWiki:Gadget-switcher.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-switcher.js"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-switcher.js&amp;action=history"/>
	<updated>2026-04-07T23:20:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-switcher.js&amp;diff=10122&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-switcher.js&amp;diff=10122&amp;oldid=prev"/>
		<updated>2020-01-28T15:04:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 15:04, 28 January 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>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-switcher.js&amp;diff=10121&amp;oldid=prev</id>
		<title>powerstorewiki&gt;Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-switcher.js&amp;diff=10121&amp;oldid=prev"/>
		<updated>2020-01-21T18:21:03Z</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;&amp;#039;use strict&amp;#039;;&lt;br /&gt;
$( function () {&lt;br /&gt;
	$.each( document.querySelectorAll( &amp;#039;.switcher-container&amp;#039; ), function ( i ) {&lt;br /&gt;
		var activeElement,&lt;br /&gt;
			switchers = [], container = this, radioName = &amp;#039;switcher-&amp;#039; + i;&lt;br /&gt;
		$.each( this.children, function () {&lt;br /&gt;
			var $radio, switcher = this,&lt;br /&gt;
				$labelContainer = $( switcher.querySelector(&amp;#039;.switcher-label&amp;#039;) ),&lt;br /&gt;
				$labelText = $labelContainer.contents();&lt;br /&gt;
			if ( !$labelText.length ) {&lt;br /&gt;
				return;&lt;br /&gt;
			}&lt;br /&gt;
			switchers.push( switcher );&lt;br /&gt;
			$radio = $( &amp;#039;&amp;lt;input type=&amp;quot;radio&amp;quot;&amp;gt;&amp;#039; ).attr( &amp;#039;name&amp;#039;, radioName ).click( function () {&lt;br /&gt;
				$( activeElement ).hide();&lt;br /&gt;
				$( switcher ).show();&lt;br /&gt;
				activeElement = switcher;&lt;br /&gt;
			} );&lt;br /&gt;
			if ( !activeElement ) {&lt;br /&gt;
				// Mark the first one as selected&lt;br /&gt;
				activeElement = switcher;&lt;br /&gt;
				$radio.prop( &amp;#039;checked&amp;#039;, true );&lt;br /&gt;
			} else if ( $labelContainer.attr( &amp;#039;data-switcher-default&amp;#039; ) !== undefined ) {&lt;br /&gt;
				// Custom default&lt;br /&gt;
				$radio.click();&lt;br /&gt;
			} else {&lt;br /&gt;
				// Hide non-default&lt;br /&gt;
				$( switcher ).hide();&lt;br /&gt;
			}&lt;br /&gt;
			$( &amp;#039;&amp;lt;label style=&amp;quot;display:block&amp;quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;#039; ).append( $radio, $labelText ).appendTo( container );&lt;br /&gt;
			$labelContainer.remove();&lt;br /&gt;
		} );&lt;br /&gt;
		if ( switchers.length &amp;gt; 1 ) {&lt;br /&gt;
			$( &amp;#039;&amp;lt;label style=&amp;quot;display:block&amp;quot;&amp;gt;Show all&amp;lt;/label&amp;gt;&amp;#039; ).prepend(&lt;br /&gt;
				$( &amp;#039;&amp;lt;input type=&amp;quot;radio&amp;quot;&amp;gt;&amp;#039; ).attr( &amp;#039;name&amp;#039;, radioName ).click( function () {&lt;br /&gt;
					$( switchers ).show();&lt;br /&gt;
					activeElement = switchers;&lt;br /&gt;
				} )&lt;br /&gt;
			).appendTo( container );&lt;br /&gt;
		}&lt;br /&gt;
		if ( switchers.length === 1 ) {&lt;br /&gt;
			$radio.remove();&lt;br /&gt;
		}&lt;br /&gt;
	} );&lt;br /&gt;
} );&lt;/div&gt;</summary>
		<author><name>powerstorewiki&gt;Caleb Cooper</name></author>
	</entry>
</feed>