Template:Image

Template page
Revision as of 13:55, 9 March 2018 by HerrHulaHoop (talk | contribs) (Creating a simple image gallery template. I merged the documentation into the main template. Can be split if it looks too messy.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template provides a simplified way to use thumbnails of images uploaded to this wiki. It automatically uses the standard thumbnail size and position used on this wiki. The template can also be used for show multiple images in a gallery.

Syntax

{{ image | Filename | Caption | Filename | Caption | Filename | Caption }}
where

  • Filename - the name of the image file (with extension) uploaded to the wiki (e.g. "myfile.png").
  • Caption - a brief description of the image which will show up below the thumbnail. Caption is mandatory for every image.

When uploading multiple images, the template will automatically adopt a gallery strip format with a consistent height amongst all images. If the width exceeds the screen size the gallery will automatically break to 2 lines. Also, do note that captions entered will not automatically truncated. Hence, do not post excessively long captions for the images.

Since this template will primarily be used for screenshots of issues, only a maximum of 10 images can be displayed using a single reference of this template. Any number of images beyond 10 will simply be ignored.

Example

Standard - Only one image

{{image|findfile.ext|caption}}


Multiple images - The images will display as a gallery strip with a common border

{{image|findfile.ext|caption|findfile.ext|caption|findfile.ext|caption}}