Template:ImageCutter

From NSMBW Knowledge Base
Jump to navigation Jump to search

ImageCutter creates a crop of an image inline, in order to show only what is needed.

Usage[edit source]

{{ImageCutter
|Image         = The name of the image file
|bSize         = The base image width in pixels
|cWidth        = Crop image width in pixels
|cHeight       = Crop image height in pixels
|oTop          = Offset top in pixels, optional and defaults to 0 when omitted
|oLeft         = Offset left in pixels, optional and defaults to 0 when omitted
|Location      = 'right', 'left', 'center' or 'none'. Determines placement of the image on the page. Defaults to right when description is provided (as is default for thumb images). When description is blank, location on left (as is default for non-thumbs)
|Description   = Description (will render out using thumbnail class)
|Link          = Name of an article to be linked by clicking on the image (omit unless there is a good reason to link to an article instead of the image).
|Alt           = The alt text for the image.
|Page          = The page of the file, if there are multiple pages (such as pdf files).
|magnify-link  = The image to be linked by the magnify icon (Use if the link parameter leads to something other than the image).
}}

If you used the above parameters incorrectly, the article will be placed into Category:CSS image crop using invalid parameters.