Template:Crop

From Erfwiki
Revision as of 14:26, 27 April 2011 by HistoricAccount GRuban (Talk | contribs) (Added 6th parameter, to control image size.)

Jump to: navigation, search
Documentation is at Template:Crop/doc. edit

Creates a cropped version of an image and places it in a centered table block.

Usage

{{crop|left|top|right|bottom|image|[sizepx]}}

The sizepx parameter is optional - it is used to resize the image before cropping. If not used, the image is at original size.

Example

{{crop|50|20|350|200|TBFGK_1-1.jpg}} would display

TBFGK 1-1.jpg

While the full image is

TBFGK 1-1.jpg

{{crop|25|10|175|100|TBFGK_1-1.jpg|350px}} would display

TBFGK 1-1.jpg