Extension:Semantic Image Input

The Semantic Image Input extension allows for automatic adding of images from Wikipedia pages via a Semantic Forms input.

Feature overview

 * Image input that automatically fetches the first image from a Wikipedia page.
 * Wikipedia redirect resolving.
 * Support for multiple instance templates in forms.

Requirements
requires:


 * MediaWiki 1.23 or above
 * Semantic Forms 2.2 or above
 * PHP 5.3 or above

Configuration
Configuration of is done by assigning to   in your  file. The options are listed below and their default is set in the settings file. You should NOT modify the settings file, but can have a look at it to get an idea of how to use the settings, in case the below descriptions do not suffice.

Example of how to change a setting:


 * Available settings

Usage
The input added by this extension is called "instantimage" and it has 2 modes, which can be chosen using the "type" parameter.

Page mode
In page mode, the input will pull an image from the Wikipedia page with the same name as the page being edited or created.

Item mode
Item mode is for in multiple instance templates. The input will find the first input in the multiple instance template, and on every change of the value in this input, look up a corresponding image.

Form example
Example of a form with an input in page mode and one in item mode:

Description:

Image:

Authors
Name:

Image:

No image shows
When there is no matching Wikipedia article, or the matching article has no images, no image will be shown. Furthermore, only images under open licences that can be found on Wikimedia Commons will be shown. In case the first image of a Wikipedia article is not under such a licence, but used under fair usage policy, it will not be shown.

Authors
has been written by Jeroen De Dauw for WhoInspired.