Manual:$wgGalleryOptions

Details
Default parameters for the &lt;gallery&gt; tag, and galleries in categories.

Default value
The mode parameter is new in MediaWiki 1.22. You can check the effect here: Help:Images