Template:Img/doc

Description
This template is a wrapper for Module:ImageUnifier and all the functionality happens there. It is designed to give all various image templates some common functionality. While this template can be called directly from main pages, it was designed to be called from other templates that need to display an image.

Syntax

 * <1> <2> <3> etc.
 * Required: Image file names, if no valid extension is present, then .png will be assumed. Any number of image files can be passed in, but they will all use the same named parameters.


 * size
 * Optional: Size of the image file as seen in size groups. As mentioned, any existing hardcoded sizes (ie: 30px) will be converted to the closest matching size group. If size is not present, then the image will be displayed at full size.
 * If manual sizing is absolutely required, then the size can be overridden by adding an 'o' at the end of the pixel size. (ie: 30pxo)


 * caption
 * Optional: Named parameter caption field is a passthrough for the non-named caption field used in File:Image.


 * options
 * Optional: All other non-named parameters from File:Image, such as format, horizontal alignment, and vertical alignment, can be added to options as a comma separated list. (ie: options=thumb,right)


 * All other named parameters
 * Optional: All other named parameters will be passed on directly to the File:Image wikicode.

Samples

 * Icon inline with text 30
 * Multiple Currencies
 * 3 different sizes become the same size


 * thumbnail of a jpg screenshot with size override

Results in...


 * Icon inline with text 30
 * Multiple Currencies
 * 3 different sizes become the same size


 * thumbnail of a jpg screenshot with size override

Size groups
Throughout this wiki, images were being displayed in multiple different sizes that were hardcoded. This goes against general ideas of css styling to have consistency for how things should be displayed.