<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rosiesocrossing.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACSS_image_crop%2Fdoc</id>
	<title>Template:CSS image crop/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rosiesocrossing.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACSS_image_crop%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://rosiesocrossing.com/index.php?title=Template:CSS_image_crop/doc&amp;action=history"/>
	<updated>2026-05-07T16:19:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://rosiesocrossing.com/index.php?title=Template:CSS_image_crop/doc&amp;diff=2959&amp;oldid=prev</id>
		<title>Rosie: Created page with &quot;==Usage== &lt;pre&gt; {{CSS image crop |Image         =  |bSize         =  |cWidth        =  |cHeight       =  |oTop          =  |oLeft         =  |Location      =  |Description   =  |Link          =  |Alt           =  |Page          =  |magnify-link  =  }} &lt;/pre&gt;  This template was {{wp|Template:CSS image crop|adapted from Wikipedia}} and is intended to be used when it is desired to display a cropped version of an image file. This reduces the need to upload cropped versions o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rosiesocrossing.com/index.php?title=Template:CSS_image_crop/doc&amp;diff=2959&amp;oldid=prev"/>
		<updated>2025-09-08T11:53:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Usage== &amp;lt;pre&amp;gt; {{CSS image crop |Image         =  |bSize         =  |cWidth        =  |cHeight       =  |oTop          =  |oLeft         =  |Location      =  |Description   =  |Link          =  |Alt           =  |Page          =  |magnify-link  =  }} &amp;lt;/pre&amp;gt;  This template was {{wp|Template:CSS image crop|adapted from Wikipedia}} and is intended to be used when it is desired to display a cropped version of an image file. This reduces the need to upload cropped versions o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{CSS image crop&lt;br /&gt;
|Image         = &lt;br /&gt;
|bSize         = &lt;br /&gt;
|cWidth        = &lt;br /&gt;
|cHeight       = &lt;br /&gt;
|oTop          = &lt;br /&gt;
|oLeft         = &lt;br /&gt;
|Location      = &lt;br /&gt;
|Description   = &lt;br /&gt;
|Link          = &lt;br /&gt;
|Alt           = &lt;br /&gt;
|Page          = &lt;br /&gt;
|magnify-link  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template was {{wp|Template:CSS image crop|adapted from Wikipedia}} and is intended to be used when it is desired to display a cropped version of an image file. This reduces the need to upload cropped versions of existing images, as the cropped display can be achieved using CSS through this template.&lt;br /&gt;
 &lt;br /&gt;
The following parameters control the functionality of this template:&lt;br /&gt;
* &amp;lt;code&amp;gt;Image&amp;lt;/code&amp;gt; sets the image to appear in the template. This should be the filename with extension suffix, but omitting the &amp;quot;File:&amp;quot; prefix, e.g. &amp;#039;&amp;#039;Example.jpg&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;lt;code&amp;gt;bSize&amp;lt;/code&amp;gt; sets the base image width in pixels, on which the crop will be applied.&lt;br /&gt;
* &amp;lt;code&amp;gt;cWidth&amp;lt;/code&amp;gt; sets the cropped image width in pixels.&lt;br /&gt;
* &amp;lt;code&amp;gt;cHeight&amp;lt;/code&amp;gt; sets the cropped image height in pixels.&lt;br /&gt;
* &amp;lt;code&amp;gt;oTop&amp;lt;/code&amp;gt; is an optional parameter that offsets from the top of the image by the specified number of pixels.&lt;br /&gt;
* &amp;lt;code&amp;gt;oLeft&amp;lt;/code&amp;gt; is an optional parameter that offsets from the left of the image by the specified number of pixels.&lt;br /&gt;
* &amp;lt;code&amp;gt;Location&amp;lt;/code&amp;gt; is an optional parameter that determines the image&amp;#039;s placement on the page using one of the following positions:&lt;br /&gt;
**&amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt; is the default used when description is left blank.&lt;br /&gt;
**&amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt; is the default used when blank but a description is provided.&lt;br /&gt;
**&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Description&amp;lt;/code&amp;gt; is an optional parameter that converts the image to a thumbnail and uses the provided text as the thumbnail&amp;#039;s caption.&lt;br /&gt;
* &amp;lt;code&amp;gt;Link&amp;lt;/code&amp;gt; is an optional parameter that sets the page the image will link to when selected.&lt;br /&gt;
* &amp;lt;code&amp;gt;Alt&amp;lt;/code&amp;gt; is an optional parameter that sets alt text for the image.&lt;br /&gt;
* &amp;lt;code&amp;gt;magnify-link&amp;lt;/code&amp;gt; is an optional parameter that sets the image file the magnify icon will link to when selected.&lt;br /&gt;
&lt;br /&gt;
Note that you may need to use offsets for the crop to display properly if the image you are using has significant empty space.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{CSS image crop&lt;br /&gt;
|Image         = Tom Nook NH.png&lt;br /&gt;
|bSize         = 150&lt;br /&gt;
|cWidth        = 150&lt;br /&gt;
|cHeight       = 123&lt;br /&gt;
|Location      = left&lt;br /&gt;
|Description   = Cropped Tom Nook&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Tom Nook NH.png|thumb|left|150px|Full-size Tom Nook]]&lt;br /&gt;
&lt;br /&gt;
{{CSS image crop&lt;br /&gt;
|Image         = Tom Nook NH.png&lt;br /&gt;
|bSize         = 150&lt;br /&gt;
|cWidth        = 150&lt;br /&gt;
|cHeight       = 123&lt;br /&gt;
|Location      = left&lt;br /&gt;
|Description   = Tom Nook cropped to display only his head&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{CSS image crop&lt;br /&gt;
|Image         = Emotion Surprise NH Icon.png&lt;br /&gt;
|bSize         = 128&lt;br /&gt;
|cWidth        = 45&lt;br /&gt;
|cHeight       = 120&lt;br /&gt;
|oLeft         = 40&lt;br /&gt;
|Location      = left&lt;br /&gt;
|Description   = Cropped icon with blank space removed. Offsets have been used to position the image within the crop.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Emotion Surprise NH Icon.png|thumb|left|128px|Full-size icon. The image contains blank space on the left and right sides.]]&lt;br /&gt;
&lt;br /&gt;
{{CSS image crop&lt;br /&gt;
|Image         = Emotion Surprise NH Icon.png&lt;br /&gt;
|bSize         = 128&lt;br /&gt;
|cWidth        = 45&lt;br /&gt;
|cHeight       = 120&lt;br /&gt;
|oLeft         = 40&lt;br /&gt;
|Location      = left&lt;br /&gt;
|Description   = Cropped icon with blank space removed. Offsets have been used to position the image within the crop.&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Rosie</name></author>
	</entry>
</feed>