_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

MediaWiki:Gadget-MakeMobileCollapsible.js

In today's world, MediaWiki:Gadget-MakeMobileCollapsible.js is a relevant topic that generates great interest and debate among different sectors of society. With the advancement of technology and globalization, MediaWiki:Gadget-MakeMobileCollapsible.js has acquired significant importance in our lives, impacting various aspects, from the way we relate to others, to the way we manage our resources. In this article, we will explore in depth the different approaches and perspectives on MediaWiki:Gadget-MakeMobileCollapsible.js, analyzing its relevance in the current context and its possible evolution in the future. In addition, we will examine how MediaWiki:Gadget-MakeMobileCollapsible.js has influenced decision-making at the individual and collective level, as well as the configuration of public policies and business strategies.
// MakeMobileCollapsible, enables collapsible templates/infoboxes on the mobile site.
// This is a spinoff from Factotum. (https://en.wikipedia.orghttps://wiki386.com/en/User:Alexis_Jazz/Factotum)
// MakeMobileCollapsible is public domain, irrevocably released as WTFPL Version 2 by its author, Alexis Jazz.

/*globals $:false,mw:false*/
var MMCollap = {};
MMCollap.do = function(classes,int) {
	MMCollap.els = $('.mw-collapsible');
	if ( MMCollap.els ) {
		if ( MMCollap.els.length > 1 ) {
			// the "autocollapse" class is handled by code in Common.js on enwiki, but Common.js isn't loaded on mobile.
			$('.autocollapse').addClass('mw-collapsed');
		}
		mw.loader.using().then( function () {
			mw.loader.addStyleTag('.mw-parser-output .mw-collapsible-toggle{font-weight:normal;min-width:6em}');
			$(MMCollap.els).makeCollapsible(); //T111565 FTFY
		});
	}
};
//make collapsible content collapsible whenever the page is rendered, on load but also e.g. after saving an edit
mw.hook( 'wikipage.content' ).add( MMCollap.do );