Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

LightboxThumbs


We can also use a functionality provided by LightBox to allow thumbnail images within our wiki to be opened within the page.

Lightbox 2 comes to our rescue here yet again, alongside the LightboxThumbs MediaWiki extension (http://www.mediawiki.org/wiki/Extension:LightboxThumbs).

Installing LightboxThumbs

Installing LightboxThumbs is quite simple. You need to follow these steps:

  • Save the LightboxThumbs.php file in the extensions directory of your MediaWiki installation. The file is provided on the Extensions page on MediaWiki.org.

  • Inform MediaWiki that you are expecting the LightboxThumbs extension to be present by adding the code requires_once("$IP/extensions/LightboxThumbs.php") to your LocalSettings.php file.

  • Install Lightbox.

The Result

We should now be able to see a larger version of images and photographs uploaded on our wiki when we click on the thumbnail version of images embedded within our wiki's content: