Template:InvSprite/doc

From CivWiki
Revision as of 22:09, 21 January 2024 by Lodish (talk | contribs) (Created page with "{{lua|SpriteFile}} This template displays an inventory image. == Parameters == {| class="wikitable" ! Name ! Usage |- | {{para|name}} | Sets the image. |- | {{para|link}} | Sets the link for the image and the optional text. If unset or set to <code>none</code>, no link is added<br>Supports both internal and external links<br> |- | {{para|text}} | If set, the value is displayed as text after the image. |- | {{para|scale}} | Sets the scale of the image. If unset the defa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template displays an inventory image.

Parameters

Name Usage
|name= Sets the image.
|link= Sets the link for the image 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 image.
|scale= Sets the scale of the image. If unset the default parameter is 1.

Example

{{InvSprite}}

Invicon Grass Block.png: Sprite image for Grass Block in Minecraft

Full list

Here is a full list of entities:

Animated icons

See Category:Animated inventory icons for a list of animated icons.
They can be used like the static icons above, just omit the Invslot prefix and extension from the file name.

See also