Template:Image/doc

< Template:Image
Revision as of 22:27, 8 November 2012 by Mbc07 (talk | contribs) (Updated documentation)

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

Usage

The Image template should be called in the following way:

  • {{Image|<filename>|<description>|<new row?>}}

where

  • Filename is the name of the file (with extension) uploaded to the wiki (like "myfile.png")
  • Description (optional) is the caption for the thumbnail
  • new row? (optional) should always be br when used. This parameter tell the template if it should create a new row or not.

Examples

  • Specifying filename and description. We are embedding only one image, so we should add the br tag to the 3rd parameter. In this example, {{Image|Super Smash Bros. Melee-Corrupt Stats.jpg|Corrupt|br}} will produce this:
  • Specifying only filename leaves the description empty. We are embedding only one image, so we should add the br tag to the 3rd parameter. In this example, {{Image|Super Smash Bros. Melee-Non-Corrupt Stats.jpg||br}} will produce this:

Notes

  • Using multiple calls will make the thumbnails be side-by-side (the last image should ALWAYS include the br tag to the 3rd parameter):
  • When you need one image in each row, you should add the br tag to the 3rd parameter of all images, not just the last:
  • If you use this template and forget to add the br tag to the 3rd parameter after calling the last image, you'll get something weird, like this topic!