MediaWiki:Gadget-MakeMobileCollapsible.js explained

// MakeMobileCollapsible, enables collapsible templates/infoboxes on the mobile site.// This is a spinoff from Factotum. (https://en.wikipedia.org/wiki/User:Alexis_Jazz/Factotum)// MakeMobileCollapsible is public domain, irrevocably released as WTFPL Version 2[www.wtfpl.net/about/] by its author, Alexis Jazz.

/*globals $:false,mw:false*/var MMCollap = ;MMCollap.do = function(classes,int) ;//make collapsible content collapsible whenever the page is rendered, on load but also e.g. after saving an editmw.hook('wikipage.content').add(MMCollap.do);