Extension:EImage

EImage allows users to display images from external image hosts as if they were stored locally. External images may be thumbnailed/resized/framed just like local images and the syntax used is very similar to MediaWiki's Images syntax. EImage can:
 * Display images from another sites,
 * display titles or comments from the image host,
 * and also overlay the base image by text (or image). Templates, wiki syntax or translation can be used too. For example see page about account creation process, or documentation of the Template:Image on wiki Thewoodcraft.org

Installation
Wait for repository. Original & code prepared to commit may be cloned by


 * git clone https://www.thewoodcraft.org/pub/wiki/eimage-3.0

Syntax and Examples
EImage to disposition this types of functions:
 * Image (#eimage) : The "main" options for displaying the image. This is similar to MediaWiki's Images.
 * Annotations (#eimagea): This is a separate parser function for an annotation. You can have as many of these as you want.
 * Parameters of the local image, width (#eimgw) and height (#eimgw)

#eimage
The full syntax for displaying an image is:

Refer to http://www.mediawiki.org/wiki/Help:Images for detailed descriptions. Below is a list of options available in EImage:

First parameter, URL of the image to display. If a raw URL is entered, you will need to also specify the width and height. If you want use image from local wiki, we can use Magic word, which can be parametrized. For example:

Next usable options:
 * Format : border or frameless
 * Resizing : {width}x{height}px
 * Horizontal alignment : one of inline and/or left, right, center, none
 * Position : inline, displays the image(+frame) inline instead of as a floating block (it overrides the float option). Works best with none. Useful for displaying multiple thumbnails on one line.
 * Vertical alignment : one of baseline, sub, super, top, text-top, middle, bottom, text-bottom
 * Link : link={target} Currently only links that start with http/https/ftp are supported.

These options change the defaults for all annotations in an image (not all images). If no annotations are used, these are ignored:
 * Horizontal alignment : aalign=
 * Background color : abg= (default is transparent)
 * Font family : afamily=
 * Font size : asize=
 * Font weight : aweight=
 * Font style : astyle=
 * Font shadow : ashadow=
 * Font color : acolor=
 * Line height : aheight=

Last position parameter is accepted every as alternative note of image.

Some examples:

#eimagea
Each image can have any number of annotations. In the tag use the annot= option to specify an annotation. The value of annot= is another function called . Below are the options available for :
 * Horizontal alignment option: one of left, right, center, justify, inherit
 * Background color option: bg=
 * Font parameters :
 * family : family=
 * size : size=
 * weight : weight=
 * style : style=
 * shadow : shadow=


 * Font color : color=
 * Line height : height=

If a parameter does not match any of the other possibilities, it is assumed to be the annotation text. Annotations support wiki-formatting.

Some examples:

Credits
These are the sources used by Robert Pooley for inspiration, ideas, and code:
 * Template:Annotated image (Wikipedia)
 * File  where found inspiration how-to convert   links common in Flickr comments to wiki-formatted links.
 * Database scheme the 'ratings table' from extension SelectionSifter (MW 1.19)