Template:I-slot
Revision as of 10:27, 18 December 2021 by Tobias Alcaraz (talk | contribs) (Created page with "<span class="minetip invslot-item" {{#if: {{{minetip-title|}}}|data-minetip-title="{{{minetip-title|}}}" }} {{#if: {{{minnetip-text|{{{1}}}}}}|data-minetip-text="{{{minetip-te...")
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!
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>
→
{{I-slot|Wooden Planks|Cow}}</nowiki>
→
{{I-slot|Wooden Planks|Cow|Tooltip text.}}</nowiki>
→