Template:Sprite: Difference between revisions
From TibiaCraft
Jump to navigationJump to search
Created page with "<includeonly>{{#invoke:sprite|base}}</includeonly><noinclude> {{documentation}} <!-- Put categories/interwiki on the documentation page --> </noinclude>" |
No edit summary |
||
| Line 1: | Line 1: | ||
* {{tl|Crafting Table}} | |||
* {{tl|Inventory Table}} | |||
* {{tl|Furnace}} | |||
* {{tl|Brewing Stand}} | |||
* {{tl|Stonecutter}} | |||
* {{tl|Loom}} | |||
* {{tl|Grindstone}} | |||
* {{tl|Hotbar}} | |||
* {{tl|Smithing Table}} | |||
* {{tl|Legacy Smithing Table}} | |||
* {{tl|Anvil}} | |||
* {{tl|Inventory slot}} | |||
* {{tl|Inventory}} | |||
* [[Module:UI]]<noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/ | <!-- Put categories/interwikis on the documentation page --></noinclude> | ||
</noinclude> | |||
Latest revision as of 19:44, 4 October 2025
{{Crafting Table}}{{Inventory Table}}{{Furnace}}{{Brewing Stand}}{{Stonecutter}}{{Loom}}{{Grindstone}}{{Hotbar}}{{Smithing Table}}{{Legacy Smithing Table}}{{Anvil}}{{Inventory slot}}{{Inventory}}- Module:UI
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
{{Sprite
|pos=1
|align=text-top
|image=BlockCSS.png
|link=Grass Block
|text=Grass
|size=16
|sheetsize=256
}}
| Parameter | Function | Default value |
|---|---|---|
align |
Sets the vertical alignment of the image to the text. | middle |
class |
Add additional classes to .sprite | None |
css |
Add styling to .sprite | None |
defaultpos |
The default position used if no position is set. | 1 |
image |
Sprite sheet image, without prefix | None |
link |
Create a link to this page | None |
name
|
Sets the name for this spritesheet, used to:
|
None |
pos |
Position index of the sprite, depends on size and sheetsize (left to right, starting at top-left sprite) |
defaultpos
|
scale |
Scale the sprite larger or smaller | 1 |
sheetsize |
Width of the whole sheet in pixels. Must be multiple of size |
256 |
size |
Size of each sprite in pixels, width and height | 16 |
text |
Show some text after the sprite, if link is set, this text will also be linked. |
None |
title |
Set a title to be displayed when hovering over the sprite or text, overrides the link's title. | None |
See also
- Minecraft
{{BiomeSprite}}{{BlockSprite}}{{EffectSprite}}{{EntitySprite}}{{EnvSprite}}{{ItemSprite}}{{InvSprite}}{{SchematicSprite}}{{SlotSprite}}{{SkinSprite}}{{PersonaSprite}}{{TextureSprite}}{{AchievementSprite}}{{NewAchievementSprite}}
- Minecraft (legacy)
{{LegacyBlockSprite}}{{LegacyEntitySprite}}{{LegacyItemSprite}}
Minecraft Dungeons
{{DungeonsLevelSprite}}{{DungeonsEnchantmentSprite}}{{DungeonsEffectSprite}}{{DungeonsEntitySprite}}{{DungeonsItemSprite}}{{DungeonsAchievementSprite}}{{DungeonsMiscellaneousSprite}}
- Minecraft Legends
{{LegendsEntitySprite}}{{LegendsStructureSprite}}{{LegendsAchievementSprite}}{{LegendsMiscellaneousSprite}}
Minecraft Story Mode
{{Interact}}{{StoryModeAreaSprite}}{{StoryModeEntitySprite}}{{StoryModeCharacterSprite}}{{StoryModeItemSprite}}{{StoryModeAchievementSprite}}
Franchise
{{AreaSprite}}{{CharacterSprite}}{{ObjectSprite}}{{LegoSprite}}{{MovieSprite}}
- Other
{{Sprite}}{{SpriteGrid}}{{Layered blueprint}}{{Schematic}}{{SchematicSprite}}{{CommentSprite}}{{FrontPageSprite}}{{ProgressSprite}}{{Tint}}- Module:Sprite
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Sprite/doc.