Template:BlockSprite/doc

From TibiaCraft
Revision as of 21:20, 4 October 2025 by Root (talk | contribs) (Created page with "{{documentation header}} {{lua|SpriteFile}} This template displays a block sprite from the following naming scheme: <code>File:BlockSprite_<id>.png</code> {{Sprite/Parameters}} == Examples == {| class="wikitable" ! Code ! Result |- | {{t|BlockSprite|grass-block}} || {{BlockSprite|grass-block}} |- | {{t|BlockSprite|grass-block-top}} || {{BlockSprite|grass-block-top}} |- | {{t|BlockSprite|cobblestone}} || {{BlockSprite|cobblestone}} |- | {{t|BlockSprite|poppy}} || {{Bloc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This is the documentation page. It should be transcluded into Template:BlockSprite. See Template:Documentation for more information.
This template uses Module:SpriteFile, a script written in Lua.

This template displays a block sprite from the following naming scheme: File:BlockSprite_<id>.png

Parameters

Name Usage
|1= Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.
Value may be a name or a number, though names are preferred
|link= Sets the link for the sprite and the optional text. If unset or set to none, no link is added
Supports both internal and external links
|text= If set, the value is displayed as text after the sprite.

Examples

Code Result
{{BlockSprite|grass-block}} BlockSprite grass-block.png: Sprite image for grass-block in Minecraft
{{BlockSprite|grass-block-top}} BlockSprite grass-block-top.png: Sprite image for grass-block-top in Minecraft
{{BlockSprite|cobblestone}} BlockSprite cobblestone.png: Sprite image for cobblestone in Minecraft
{{BlockSprite|poppy}} BlockSprite poppy.png: Sprite image for poppy in Minecraft

Full list

Here is a full list of blocks:

See also

Minecraft
Minecraft (legacy)

Minecraft Dungeons

Minecraft Legends

Minecraft Story Mode

Franchise

Other