Difference between revisions of "Template:I-slot"
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!
(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...") |
|||
Line 1: | Line 1: | ||
− | <span class="minetip invslot-item" {{#if: {{{minetip-title|}}}|data-minetip-title="{{{minetip-title|}}}" }} {{#if: {{{minnetip-text| | + | <span class="minetip invslot-item" {{#if: {{{minetip-title|}}}|data-minetip-title="{{{minetip-title|}}}" }} {{#if: {{{minnetip-text|}}}|data-minetip-text="{{{minetip-text|}}}"}}> |
[[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{4}}}|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]] | [[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{4}}}|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]] | ||
</span><noinclude> | </span><noinclude> |
Revision as of 10:31, 18 December 2021
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>
→