Template:I-slot

From Mine Blocks Wiki
Revision as of 11:44, 18 December 2021 by Tobias Alcaraz (talk | contribs)
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

{{{1}}}

About

This templated (named I-slot as a shortcut for item-slot) serves as an easy method to add icon sprites that are inside of a in-game slot, with tooltip included with the item's name and/or with extra info.

Usage

The syntax of the template is:

{{I-slot
|<file-name>
|<item-link>?
|<tooltip-text>?
|<file-class>?
|<tooltip-title>
|<tooltip-text>
}}

. Note tht tooltip-title and tooltip-text are mandatory for the tooltip to work. In case you don't need tooltip-text, you can mention the parameter and leave it empty. tooltip-title defaults to the first parameter (file-name)'s text if it's not used.

Examples

  • {{I-slot|Wooden Planks|tooltip-title}}</nowiki>Wooden Planks
  • {{I-slot|Wooden Planks|Cow}}</nowiki>Wooden Planks
  • {{I-slot|Wooden Planks|Cow|Tooltip text.}}</nowiki>Tooltip text.