MediaWiki:Gadget-CollapseExpandButtons
(D) CollapseExpandButtons: Adds a button to collapse or expand all collapsible elements with the help of a JavaScript script: MediaWiki:Gadget-CollapseExpandButtons.js. To be used with Template:CollapseAll and Template:ExpandAll to add the proper CSS classes to target.