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. See the help page on the mode parameter for more information.