Extension:AdaptiveThumb

From MediaWiki.org
Jump to navigation Jump to search

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?

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

Installation

  • 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:
    require_once "$IP/extensions/AdaptiveThumb/AdaptiveThumb.php";
    
    If needed, set the ownership to the apache user (this example shows how to do it for Ubuntu Linux):
extensions# chown -R www-data:www-data adaptivethumb
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

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" />