<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://theblockheads.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASprite%2Fdoc</id>
	<title>Template:Sprite/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://theblockheads.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASprite%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://theblockheads.wiki/index.php?title=Template:Sprite/doc&amp;action=history"/>
	<updated>2026-04-17T12:39:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://theblockheads.wiki/index.php?title=Template:Sprite/doc&amp;diff=25160&amp;oldid=prev</id>
		<title>FloofyPlasma: Created page with &quot;{{documentation header}} &lt;!-- Documentation here --&gt; {{lua}} This template creates a sprite from a sheet image. Commonly used when many small images are displayed on one page to reduce the total amount of HTTP connections.  == Examples == &lt;pre&gt; {{Sprite |pos=1 |align=text-top |image=BlockCSS.png |link=Grass Block |text=Grass |size=16 |sheetsize=256 }} &lt;/pre&gt;  {| class=&quot;wikitable&quot; ! Parameter ! Function ! Default value |- | &lt;code&gt;align&lt;/code&gt; || Sets the [http://css-trick...&quot;</title>
		<link rel="alternate" type="text/html" href="https://theblockheads.wiki/index.php?title=Template:Sprite/doc&amp;diff=25160&amp;oldid=prev"/>
		<updated>2024-08-06T22:02:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{documentation header}} &amp;lt;!-- Documentation here --&amp;gt; {{lua}} This template creates a sprite from a sheet image. Commonly used when many small images are displayed on one page to reduce the total amount of HTTP connections.  == Examples == &amp;lt;pre&amp;gt; {{Sprite |pos=1 |align=text-top |image=BlockCSS.png |link=Grass Block |text=Grass |size=16 |sheetsize=256 }} &amp;lt;/pre&amp;gt;  {| class=&amp;quot;wikitable&amp;quot; ! Parameter ! Function ! Default value |- | &amp;lt;code&amp;gt;align&amp;lt;/code&amp;gt; || Sets the [http://css-trick...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation header}}&lt;br /&gt;
&amp;lt;!-- Documentation here --&amp;gt;&lt;br /&gt;
{{lua}}&lt;br /&gt;
This template creates a sprite from a sheet image. Commonly used when many small images are displayed on one page to reduce the total amount of HTTP connections.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Sprite&lt;br /&gt;
|pos=1&lt;br /&gt;
|align=text-top&lt;br /&gt;
|image=BlockCSS.png&lt;br /&gt;
|link=Grass Block&lt;br /&gt;
|text=Grass&lt;br /&gt;
|size=16&lt;br /&gt;
|sheetsize=256&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Function&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;align&amp;lt;/code&amp;gt; || Sets the [http://css-tricks.com/what-is-vertical-align/ vertical alignment] of the image to the text. || middle&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; || Add additional classes to .sprite || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;css&amp;lt;/code&amp;gt; || Add styling to .sprite || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;defaultpos&amp;lt;/code&amp;gt; || The default position used if no position is set. || 1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt; || Sprite sheet image, without prefix || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt; || Create a link to this page || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;&lt;br /&gt;
| Sets the name for this spritesheet, used to:&lt;br /&gt;
# get the position definitions: Module:Sprite/&amp;lt;name&amp;gt;&lt;br /&gt;
# part of the classname if it&amp;#039;s in the imgClasses table: &amp;lt;code&amp;gt;&amp;lt;name:lower&amp;gt;-sprite&amp;lt;/code&amp;gt;&lt;br /&gt;
# part of the image name, if &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt; isn&amp;#039;t set: &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Sprite.png&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt; || Position index of the sprite, depends on &amp;lt;code&amp;gt;size&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sheetsize&amp;lt;/code&amp;gt; (left to right, starting at top-left sprite) || &amp;lt;code&amp;gt;defaultpos&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;scale&amp;lt;/code&amp;gt; || Scale the sprite larger or smaller || 1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sheetsize&amp;lt;/code&amp;gt; || Width of the whole sheet in pixels. Must be multiple of &amp;lt;code&amp;gt;size&amp;lt;/code&amp;gt; || 256&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;size&amp;lt;/code&amp;gt; || Size of each sprite in pixels, width and height || 16&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; || Show some text after the sprite, if &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt; is set, this text will also be linked. || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; || Set a title to be displayed when hovering over the sprite or text, overrides the link&amp;#039;s title. || &amp;#039;&amp;#039;None&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Sprite see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Template categories/interwiki here --&amp;gt;&lt;br /&gt;
[[Category:Sprite templates| ]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>FloofyPlasma</name></author>
	</entry>
</feed>