I wrote an extension for mediawiki to integrate it with Gallery2.
You can download it here.
From the source code documentation:
* This is a WikiMedia extension that I wrote because I wanted to be able
* to include multiple thumbnails from a Gallery2 gallery (for more info
* on the software, see http://gallery.sf.net) running on a different
* server than the one where the MediaWiki is installed. It uses the
* Gallery Remote protocol as described at http://gallery.menalto.com/modules.p
hp?op=modload&name=phpWiki&file=index&pagename=Gallery%20Remote%20Documents
* to fetch the image urls from Gallery. Right now it only supports a new
* MediaWiki tag, , that allows for the display of an arbitrary
* number of random photos from the album to be displayed. It only has the
* support I needed in order to build the site for the Plan-It-X Fest Tour
* 2005 Documentation Project Wiki (http://pixfestdoc.terrorware.com).
* If you find this software useful, encounter a bug, or would like to
* see more features, please contact me at geoff@terrorware.com.
*
* For a more full-featured integration of Gallery as a backend to
* WikiMedia, check out the Gallery2wiki extension (http://www.transarte.net/me
diawiki/index.php/Gallery2wiki) which allows for the manipulation of albums
* within MediaWiki. I wrote this extension because Gallery2wiki doesn’t
* support the display of an “album” and I don’t know if it will work for
* a remote gallery.
*
* To activate this extension, include it from your LocalSettings.php
* with: include(“extensions/GalleryRemoteAlbum.php”);