Template:CSS image crop

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentationviewedithistorypurge
This documentation is transcluded from Template:CSS image crop/doc.

lets you create a crop of an image inline for previewing the look and feel of a page. If the edit is committed these crops should be replaced with server side cropped images to avoid sending extra image data to people.

Usage

{{CSS image crop |Image= |bSize= |cWidth= |cHeight= |oTop= |oLeft= }}

Template parameters

ParameterDescriptionDefaultStatus
ImageThe Name of the image.emptyoptional
bSizeThe Base Image size (the image we are cropping on)emptyoptional
cWidthCrop Image Width in pixelsemptyoptional
cHeightCrop image Height in pixelsemptyoptional
oTopOffset Top in pixelsemptyoptional
oLeftOffset Left in pixelsemptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.

Example

{{CSS image crop
|Image = Dew on grass Luc Viatour.jpg
|bSize = 400
|cWidth = 100
|cHeight = 100
|oTop = 180
|oLeft = 60
}}
Dew on grass Luc Viatour.jpg