Template:Inventory icon: Difference between revisions

From Parallel Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke: inventory icon | icon }}</includeonly><noinclude> {{subst:doc}}")
 
m (1 revision imported: Imported from minecraft.wiki)
 
(No difference)

Latest revision as of 05:24, 31 October 2023

[view] [edit] [history] [⧼smw purge⧽]Documentation
Lua logo.svg
This template uses Module:Inventory icon, a script written in Lua.

This template displays an image from {{inventory slot}}, only without adding a lot of the other styling and features.

Usage

The parameter |1= can be set to determine the icon displayed. It will display an image with the title in the format of Invicon |1=.png.

The parameter |link= will set a link for when the image is clicked. If unset, the image will have no link.

The parameter |title= will set the title for when the image is moused over. If unset, the image will display the link as the title, or nothing if both are unset.

Example

{{inventory icon|Stone}}

produces

Invicon Stone.png

{{inventory icon|Cobblestone|link=Mining}}

produces

Invicon Cobblestone.png

{{inventory icon|Oak Wood|link=Wood|title=Punch the wood!}}

produces

Punch the wood!

See also


ru:Шаблон:Инвентарная иконка pt:Predefinição:Ícone de inventário

[view] [edit] [history] [⧼smw purge⧽]The above documentation is transcluded from Template:Inventory icon/doc.