Template:Image

From Species-ID
Revision as of 12:26, 16 December 2008 by Gregor Hagedorn (Talk | contribs)

Jump to: navigation, search

Description

This template works similar to the default mediawiki image embedding syntax ([[File:x.png|thumb|left|250px|The caption text]]), except in that it also allows to scale an image as a percentage of the original size. If the parameter "width" is called with a "px" after the number, normal pixel scaling occurs, else the number will be interpreted as percent of the original image.

Parameters

  • width: either number + px for fixed width in pixel, or number, interpreted as percentage relative to original size.
  • a sequence of unnamed parameters, covering the standard image functionality (thumb, left, caption, etc.).

Usage

  • {{Image|File:x.png|Your caption text here|width=250px}}
    Fully equivalent to: [[File:x.png|250px|Your caption text here]]
  • {{Image|File:x.png|thumb|left|width=15|upright|Your caption text}}
    This scales the image to 15% of original size.