Template:Image

Purpose
This is a dynamic template that offers enhanced ways of handling images, including ways to create image links, linking to no page at all, constraining both image dimensions to a certain amount, having proper alternate text, and sizing images based on a percentage instead of by a pixel amount. As well as enhanced thumbnail formats and image captions. None of these options are available or practical with standard image coding. This template allows for simplified ways of performing complex formatting of images.

Usage
To use this template, start with this code:

Here are descriptions of the parameters. Only the parameter "image" is actually required, the rest are optional.

Examples
Here is an example of some ways to use this template.

With standard sizing, the image is simply scaled to the width specified. An example code is: This code is then shown rendered here, in a table for clarity: {|

With scale sizing, the image is constrained within a specific dimension. This can be used to ensure an image fits properly in a table. When used with a pixel amount, this is the exact same process that built-in image galleries use to maintain their structure with various image sizes. An example code is:
 * }

This code is then shown rendered here, in a table for clarity: {|


 * }

There is also the option of thumbnail and caption displays.

Linking to nothing: