Template:ImageTG

From Species-ID
Revision as of 02:18, 17 December 2008 by Gregor Hagedorn (Talk | contribs) (first try...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Description

This template is a specialized template to render a specific kind of microscopic photos by T. Gräfenhan. The images have a maximum size of 2560px if uncropped, but may be cropped. The major function of this template is to calculate a scale bar correctly for the magnification factors embedded in the file name.

Parameters

  • width: either number + px for fixed width in pixel, or number, interpreted as percentage relative to original size.
  • caption: You must pass the caption in a named parameter!
  • 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.


Dependendencies

Depends on Extension:StringFunctions, Extension:MediaFunctions, Extension:Variables.