Extension:AdaptiveThumb

From mediawiki.org
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎español • ‎हिन्दी • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
AdaptiveThumb
Release status: beta
Implementation Skin
Description Displays an image thumbnail that scales with the browser size
Author(s) Thorsten Staerk (ThorstenStaerktalk)
Latest version 0.1 (2018-03-12)
MediaWiki 1.25+
License GNU General Public License 2.0 only
Download
README
Example LinuxIntro
Check usage and version matrix.

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

Installation[edit]

  • 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
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

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

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

You can see it in action on http://www.linuxintro.org/wiki/Babe