November 4th, 2019

🕒 Wiki Weekly #25! 🕑

It's November!
We've listed pages that need some love. Take a look!

Latest Announcements

Template:ImageResize

From Zelda Wiki, the Zelda encyclopedia
Jump to: navigation, search

Purpose

This template resizes images to have its largest dimension fit a certain, specified size. This is useful for making a uniform look in tables and galleries.

Usage

There are two methods to use this template. For the first method, start with this code:

{{ImageResize
|Image=
|Size=
|Attribute=
|Caption=
}}
  • Image — The image you wish to resize, it can include the File prefix or not, it's programmed to work either way.
  • Size — The size maximum size you wish to reduce the image's dimensions to. Defaults to 120 pixels if not defined.
  • Attribute — Use to define a standard image attribute if you wish, such as frame, frameless, or thumb.
  • Caption — A caption if you wish to define one.

Only Image is required, all other parameters are optional.

If you wish to just return the new dimensions of the image, place something in a parameter named Output.

For the second method, you can use the traditional format:
    {{ImageResize|Image |Size |Attribute |Caption }}

All parameters are the same as before.