Extension:Imgur

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Imgur
Release status: unmaintained
Implementation Tag
Description Allows images from Imgur to be embedded in the wiki
Author(s) maelstr0m (Lieutenant S. Reznovtalk)
Latest version 1.0
MediaWiki 1.23
License MIT License
Download GitHub
<imgur>
Check usage and version matrix.

The Imgur extension allows images from the website Imgur to be embedded in wiki pages.

Installation[edit]

  • Download and place the file(s) in a directory called Imgur in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Imgur/Imgur.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

<imgur>xSO1ufX.jpg</imgur>

<imgur w="200">xSO1ufX.jpg</imgur>

<imgur thumb="yes" w="250" comment="This is a chicken in class.">xSO1ufX.jpg</imgur>

Images can be thumbnailed and size controlled by using w attribute for width and setting the thumb attribute to yes and entering text into the comment attribute. The thumbnailed version is wrapped in a div .imgur-thumb tag and class for skin based and wiki wide CSS changes.