Jump to: navigation, search

Template:EntitySprite/doc: Difference between revisions

m (1 revision)
 
(Updated documentation)
Line 1: Line 1:
{{doc/start}}
{{Lua|Sprite|data=EntitySprite|data2=EntitySprite/IDs}}
{{lua|Sprite}}
This template displays a mob sprite from the following sprite sheet:
This template displays a mob sprite from the following sprite sheet:


{{Sprite/Preview|EntityCSS}}
[[File:EntityCSS.png|frame|The spritesheet.]]
 
{{Sprite/Parameters}}


== Examples ==
== Examples ==
Line 17: Line 18:
|-
|-
| <code><nowiki>{{EntitySprite|lightning}}</nowiki></code> || {{EntitySprite|lightning}}
| <code><nowiki>{{EntitySprite|lightning}}</nowiki></code> || {{EntitySprite|lightning}}
|-
| <code><nowiki>{{EntitySprite|8}}</nowiki></code> || {{EntitySprite|8}}
|}
|}


{| class="wikitable" style="text-align: center;"
== Full list ==
|+Here is a full list of entities:
 
! width="30%" |Tag
Here is a full list of entities:
! Sprite
{{#invoke: Sprite | doc | EntitySprite }}
! width="30%" |Tag
! Sprite
! width="30%" |Tag
! Sprite
|-
| <code>pigman, pig</code> || {{EntitySprite|pig}}
| <code>sheep</code> || {{EntitySprite|sheep}}
| <code>cow</code> || {{EntitySprite|cow}}
|-
| <code>chicken</code> || {{EntitySprite|chicken}}
| <code>squid</code> || {{EntitySprite|squid}}
| <code>mooshroom</code> || {{EntitySprite|mooshroom}}
|-
| <code>villager</code> || {{EntitySprite|villager}}
| <code>player, the-player, human</code> || {{EntitySprite|player}}
| <code>zombie, giant</code> || {{EntitySprite|giant}}
|-
| <code>skeleton</code> || {{EntitySprite|skeleton}}
| <code>spider</code> || {{EntitySprite|spider}}
| <code>spider-day</code> || {{EntitySprite|spider-day}}
|-
| <code>cave-spider, spider-cave, blue-spider, spider-blue</code> || {{EntitySprite|cave-spider}}
| <code>creeper</code> || {{EntitySprite|creeper}}
| <code>slime</code> || {{EntitySprite|slime}}
|-
| <code>ghast</code> || {{EntitySprite|ghast}}
| <code>zombie-pigman, zombiepigman, zombie-pig, zombiepig, pig-zombie, pigzombie</code> || {{EntitySprite|zombie-pigman}}
| <code>wolf</code> || {{EntitySprite|wolf}}
|-
| <code>wolf-tamed</code> || {{EntitySprite|wolf-tamed}}
| <code>wolf-angry</code> || {{EntitySprite|wolf-angry}}
| <code>enderman</code> || {{EntitySprite|enderman}}
|-
| <code>silverfish, silver-fish</code> || {{EntitySprite|silverfish}}
| <code>snowman, snow-golem-old, snowgolmold</code> || {{EntitySprite|snowman}}
| <code>magma-cube, magmacube</code> || {{EntitySprite|magma-cube}}
|-
| <code>steve</code> || {{EntitySprite|steve}}
| <code>black-steve</code> || {{EntitySprite|black-steve}}
| <code>beast-boy</code> || {{EntitySprite|beast-boy}}
|-
| <code>rana</code> || {{EntitySprite|rana}}
| <code>ender-dragon, enderdragon</code> || {{EntitySprite|ender-dragon}}
| <code>snow-golem, snowgolem</code> || {{EntitySprite|snow-golem}}
|-
| <code>blaze</code> || {{EntitySprite|blaze}}
| <code>boat</code> || {{EntitySprite|boat}}
| <code>minecart</code> || {{EntitySprite|minecart}}
|-
| <code>minecart-with-chest, minecart-chest</code> || {{EntitySprite|minecart-chest}}
| <code>minecart-with-furnace, minecart-furnace</code> || {{EntitySprite|minecart-furnace}}
| <code>ocelot, ozelot, cat</code> || {{EntitySprite|ocelot}}
|-
| <code>black-cat</code> || {{EntitySprite|black-cat}}
| <code>ginger-cat, red-cat</code> || {{EntitySprite|ginger-cat}}
| <code>siamese-cat</code> || {{EntitySprite|siamese-cat}}
|-
| <code>arrow</code> || {{EntitySprite|arrow}}
| <code>snowball</code> || {{EntitySprite|snowball}}
| <code>egg, chicken-egg</code> || {{EntitySprite|egg}}
|-
| <code>fireball</code> || {{EntitySprite|fireball}}
| <code>purple-arrow</code> || {{EntitySprite|purple-arrow}}
| <code>ender-pearl</code> || {{EntitySprite|ender-pearl}}
|-
| <code>eye-of-ender</code> || {{EntitySprite|eye-of-ender}}
| <code>iron-golem</code> || {{EntitySprite|iron-golem}}
| <code>tnt</code> || {{EntitySprite|tnt}}
|-
| <code>sand, falling-sand</code> || {{EntitySprite|sand}}
| <code>gravel, falling-gravel</code> || {{EntitySprite|gravel}}
| <code>ender-crystal, crystal</code> || {{EntitySprite|ender-crystal}}
|-
| <code>wither-skeleton</code> || {{EntitySprite|wither-skeleton}}
| <code>witch</code> || {{EntitySprite|witch}}
| <code>wither-jockey</code> || {{EntitySprite|wither-jockey}}
|-
| <code>beacon-crystal</code> || {{EntitySprite|beacon-crystal}}
| <code>fishing-bobber, fishing-rod</code> || {{EntitySprite|fishing-bobber}}
| <code>lightning</code> || {{EntitySprite|lightning}}
|-
| <code>experience-orb</code> || {{EntitySprite|experience-orb}}
| <code>wither-skull</code> || {{EntitySprite|wither-skull}}
| <code>wither</code> || {{EntitySprite|wither}}
|-
| <code>zombie-villager</code> || {{EntitySprite|zombie-villager}}
| <code>spider-jockey</code> || {{EntitySprite|spider-jockey}}
| <code>bat</code> || {{EntitySprite|bat}}
|-
| <code>painting</code> || {{EntitySprite|painting}}
| <code>item-frame</code> || {{EntitySprite|item-frame}}
| <code>beacon-beam</code> || {{EntitySprite|beacon-beam}}
|-
| <code>minecart-with-tnt</code> || {{EntitySprite|minecart-with-tnt}}
| <code>minecart-with-hopper</code> || {{EntitySprite|minecart-with-hopper}}
| <code>minecart-with-spawner</code> || {{EntitySprite|minecart-with-spawner}}
|-
| <code>blue-wither-skull, wither-skull-blue</code> || {{EntitySprite|blue-wither-skull}}
| <code>horse</code> || {{EntitySprite|horse}}
| <code>donkey</code> || {{EntitySprite|donkey}}
|-
| <code>mule</code> || {{EntitySprite|mule}}
| <code>skeleton-horse</code> || {{EntitySprite|skeleton-horse}}
| <code>zombie-horse</code> || {{EntitySprite|zombie-horse}}
|-
| <code>minecart-with-command-block</code> || {{EntitySprite|minecart-with-command-block}}
| <code>chicken-jockey</code> || {{EntitySprite|chicken-jockey}}
| <code>villager-jockey</code> || {{EntitySprite|villager-jockey}}
|-
| <code>pigman-jockey</code> || {{EntitySprite|pigman-jockey}}
| <code>minecart-with-dispenser</code> || {{EntitySprite|minecart-with-dispenser}}
| <code>ender-acid-fire-charge</code> || {{EntitySprite|ender-acid-fire-charge}}
|-
| <code>falling-anvil, anvil</code> || {{EntitySprite|anvil}}
| <code>falling-dragon-egg, falling-dragonegg, dragon-egg, dragonegg</code> || {{EntitySprite|dragonegg}}
| <code>falling-red-sand, falling-redsand, red-sand, redsand</code> || {{EntitySprite|redsand}}
|-
| <code>default</code> || {{EntitySprite|default}}
|}


== See also ==
== See also ==
Line 151: Line 31:
{{Sprite see also}}
{{Sprite see also}}


{{doc/end}}
<includeonly>
<noinclude>
[[Category:Sprite templates]]
[[nl:Sjabloon:EntitySprite/doc]]
</includeonly>

Revision as of 20:08, 19 May 2017

Lua logo.svg
This template uses Module:Sprite, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.

This template displays a mob sprite from the following sprite sheet:

The spritesheet.

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
{{EntitySprite|creeper}}
{{EntitySprite|player}}
{{EntitySprite|fishing-bobber}}
{{EntitySprite|lightning}}

Full list

Here is a full list of entities: Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got nil).

See also




Cookies help us deliver our services. By using our services, you agree to our use of cookies.