Template:Image

From PCSAR

Jump to: navigation, search

This is the documentation for the template Template:Image

Template:Image/Doc:

The template {{Image|image file|caption|page=...|size=...}} displays the named image with more consistent functionality than [[image:...]].

image file 
the name of the image file page without the leading Image: or File:
caption 
(optional) caption to display under the image. Unlike [[image:...]], caption will always be displayed if provided, no matter what other options are specified.
page 
(optional) the page of the PDF to be displayed.
size 
(optional) the size of the image
  • {width}px — Resizes the image to fit within the given maximum width in pixels, without restricting its height;
  • x{height}px — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
  • {width}x{height}px — Resizes the image to fit within the given width and height in pixels;
  • upright — Resizes an image to fit within reasonable dimensions, according to user preferences (suitable for images whose height is larger than width).
Note that the image will always retain its aspect ratio, and can only be reduced (not increased) in size unless it's in a scalable media type (bitmap images cannot be scaled up).
The default maximum size depends on the format and the internal image dimensions (according to its media type).


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools