Extension:AdaptiveThumb

Other languages:
English • ‎español • ‎हिन्दी • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
AdaptiveThumb
Release status: beta
Implementation Skin
Description Displays an image thumbnails that scales with the browser size
Author(s) (ThorstenStaerktalk)
Latest version 0.1 (2015-01-18)
MediaWiki 1.21+
License GNU General Public License 2.0 only
Download
README
Example LinuxIntro
none
Translate the AdaptiveThumb extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?Edit

This extension allows you to show thumbnails of images that scale with the browser window.

InstallationEdit

  • Download and place the file(s) in a directory called AdaptiveThumb in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'AdaptiveThumb' );
    
    If needed, set the ownership to the apache user (this example shows how to do it for Debian-based Linux):
chown -R www-data:www-data AdaptiveThumb
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'AdaptiveThumb' );, you need to use:

require_once "$IP/extensions/AdaptiveThumb/AdaptiveThumb.php";

UsageEdit

To use this extension, simply put a <pic> tag into your mediawiki markup like this:

<pic src="/mindmap.jpg" width=30% align=right caption="this is a mindmap" />