<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsg.nuvapedia.fr/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsg.nuvapedia.fr/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://rsg.nuvapedia.fr/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-09-23T02:23:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://rsg.nuvapedia.fr/index.php?title=MediaWiki:Common.js&amp;diff=3040&amp;oldid=prev</id>
		<title>Wolk: Testing.</title>
		<link rel="alternate" type="text/html" href="https://rsg.nuvapedia.fr/index.php?title=MediaWiki:Common.js&amp;diff=3040&amp;oldid=prev"/>
		<updated>2025-05-03T12:34:26Z</updated>

		<summary type="html">&lt;p&gt;Testing.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;br /&gt;
&lt;br /&gt;
/***** Tabs for infoboxes.&lt;br /&gt;
There can be up to four main tabs, each of which can have up 4 subtabs. They are named like this:&lt;br /&gt;
1, 1b, 1c, 1d&lt;br /&gt;
2, 2b, 2c, 2d&lt;br /&gt;
3, 3b, 3c, 3d&lt;br /&gt;
4, 4b, 4c, 4d *****/&lt;br /&gt;
&lt;br /&gt;
// in the beginning set the height of each infobox container to the height of its tallest infobox, hide all the infoboxes, show the start infobox&lt;br /&gt;
$( &amp;#039;.infobox-container&amp;#039; ).each( function() {&lt;br /&gt;
	var infoboxContainer = $( this );&lt;br /&gt;
	var startInfobox = infoboxContainer.children( &amp;#039;.infobox&amp;#039; + infoboxContainer.attr( &amp;#039;data-start-infobox&amp;#039; ) )[0]; // get the start infobox (which is specified in the .infobox-container&amp;#039;s &amp;quot;data-start-infobox&amp;quot; attribute)&lt;br /&gt;
	var maxHeight = 0; // can&amp;#039;t do infoboxContainer.height(); as the starting value since currently the infoboxContainer has all the boxes visible, so it could be super tall!&lt;br /&gt;
	infoboxContainer.children( &amp;#039;.infobox&amp;#039; ).each( function() { // iterate through all the infoboxes&lt;br /&gt;
		if ( maxHeight &amp;lt; $( this ).outerHeight() ) { // if this infobox is taller than the container&lt;br /&gt;
		  maxHeight = $( this ).outerHeight();&lt;br /&gt;
		}&lt;br /&gt;
		$( this ).hide().css( &amp;#039;height&amp;#039;, &amp;#039;100%&amp;#039; ); // hide the infobox (if JS is disabled, we want everything to be visible, so we only hide stuff if JS is enabled), have it fill the container&lt;br /&gt;
	} );&lt;br /&gt;
	infoboxContainer.css( &amp;#039;height&amp;#039;, maxHeight ); // set the container&amp;#039;s height to this infobox&amp;#039;s height&lt;br /&gt;
	$( startInfobox ).show(); // show the start infobox&lt;br /&gt;
} );&lt;br /&gt;
&lt;br /&gt;
// show the appropriate infobox when a tab is clicked&lt;br /&gt;
$( &amp;#039;.infobox-tab&amp;#039; ).click( function() {&lt;br /&gt;
	var infoboxContainer = $( this ).closest( &amp;#039;.infobox-container&amp;#039; ); // find the appropriate .infobox-container&lt;br /&gt;
	var infoboxToShow = infoboxContainer.children( &amp;#039;.infobox&amp;#039; + $( this ).attr( &amp;#039;data-target&amp;#039; ) ); // get the infobox we want to show (which is specified in the tab&amp;#039;s &amp;quot;data-target&amp;quot; attribute)&lt;br /&gt;
	infoboxContainer.children( &amp;#039;.infobox&amp;#039; ).hide().css( &amp;quot;height&amp;quot;, &amp;quot;100%&amp;quot; ); // hide all the infoboxes&lt;br /&gt;
	$( infoboxToShow ).show(); // show the infobox we want to show&lt;br /&gt;
} );&lt;/div&gt;</summary>
		<author><name>Wolk</name></author>
	</entry>
</feed>