Wikipedia:MakeMobileCollapsible

This gadget was made to enable collapsible templates on the mobile site. A proposal to make this gadget available on English Wikipedia has been accepted.

As a gadget
Users will be able to turn off the script in their preferences. (if they are logged in)
 * Copy the contents of User:Alexis Jazz/MakeMobileCollapsible.js to MediaWiki:Gadget-MakeMobileCollapsible.js on your wiki.
 * Create MediaWiki:Gadget-MakeMobileCollapsible with for example
 * Add this line in a relevant section in MediaWiki:Gadgets-definition:

In Mobile.js

 * Append the contents of User:Alexis Jazz/MakeMobileCollapsible.js to MediaWiki:Mobile.js. Users won't be able to turn the script off.

You need to be an interface administrator to install a script for all users.

Test drive
https://commons.m.wikimedia.beta.wmflabs.org/wiki/Collapsible_template_test?withgadget=MakeMobileCollapsible