Template:CSS image crop
(Redirected from Template:Preview Crop)
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
Image | The Name of the image. | empty | optional | |
bSize | The Base Image size (the image we are cropping on) | empty | optional | |
cWidth | Crop Image Width in pixels | empty | optional | |
cHeight | Crop image Height in pixels | empty | optional | |
oTop | Offset Top in pixels | empty | optional | |
oLeft | Offset Left in pixels | empty | optional |
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
}}