Difference between revisions of "Template:A-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!
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <span class="ts-container"> | + | <span class="ts-container {{#if: {{{is-inline|true}}}|ts-container-inline}}"> |
− | {{#if: {{{name1|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title1|}}}|data-minetip-title="{{{minetip-title1|{{{name1}}}}}}"}} {{#if: {{{minetip-text1|}}}|data-minetip-text="{{{minetip-text1|}}}"}}>[[File:{{{name1|Invisible-sprite}}}.png|{{{size1|16}}}x{{{size1|16}}}px|class=item-icon pixel {{{class1|}}}|link={{{item-link1|{{{name1}}}}}}|{{{tooltip1|{{{name1}}}}}}]]{{#if: {{{amount1|}}}|<span class="item-amount">{{{amount1|}}}</span>}}{{#if: {{{durability1|}}}|<span class="item-durability" data-durability="{{{durability1|}}}"></span>}}</span>}}{{#if: {{{name2|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title2|}}}|data-minetip-title="{{{minetip-title2|{{{name2}}}}}}"}} {{#if: {{{minetip-text2|}}}|data-minetip-text="{{{minetip-text2|}}}"}}>[[File:{{{name2|Invisible-sprite}}}.png|{{{size2|16}}}x{{{size2|16}}}px|class=item-icon pixel {{{class2|}}}|link={{{item-link2|{{{name2}}}}}}|{{{tooltip2|{{{name2}}}}}}]]{{#if: {{{amount2|}}}|<span class="item-amount">{{{amount2|}}}</span>}}{{#if: {{{durability2|}}}|<span class="item-durability" data-durability="{{{durability2|}}}"></span>}}</span>}}{{#if: {{{name3|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title3|}}}|data-minetip-title="{{{minetip-title3|{{{name3}}}}}}"}} {{#if: {{{minetip-text3|}}}|data-minetip-text="{{{minetip-text3|}}}"}}>[[File:{{{name3|Invisible-sprite}}}.png|{{{size3|16}}}x{{{size3|16}}}px|class=item-icon pixel {{{class3|}}}|link={{{item-link3|{{{name3}}}}}}|{{{tooltip3|{{{name3}}}}}}]]{{#if: {{{amount3|}}}|<span class="item-amount">{{{amount3|}}}</span>}}{{#if: {{{durability3|}}}|<span class="item-durability" data-durability="{{{durability3|}}}"></span>}}</span>}}{{#if: {{{name4|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title4|}}}|data-minetip-title="{{{minetip-title4|{{{name4}}}}}}"}} {{#if: {{{minetip-text4|}}}|data-minetip-text="{{{minetip-text4|}}}"}}>[[File:{{{name4|Invisible-sprite}}}.png|{{{size4|16}}}x{{{size4|16}}}px|class=item-icon pixel {{{class4|}}}|link={{{item-link4|{{{name4}}}}}}|{{{tooltip4|{{{name4}}}}}}]]{{#if: {{{amount4|}}}|<span class="item-amount">{{{amount4|}}}</span>}}{{#if: {{{durability4|}}}|<span class="item-durability" data-durability="{{{durability4|}}}"></span>}}</span>}}{{#if: {{{name5|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title5|}}}|data-minetip-title="{{{minetip-title5|{{{name5}}}}}}"}} {{#if: {{{minetip-text5|}}}|data-minetip-text="{{{minetip-text5|}}}"}}>[[File:{{{name5|Invisible-sprite}}}.png|{{{size5|16}}}x{{{size5|16}}}px|class=item-icon pixel {{{class5|}}}|link={{{item-link5|{{{name5}}}}}}|{{{tooltip5|{{{name5}}}}}}]]{{#if: {{{amount5|}}}|<span class="item-amount">{{{amount5|}}}</span>}}{{#if: {{{durability5|}}}|<span class="item-durability" data-durability="{{{durability5|}}}"></span>}}</span>}}{{#if: {{{name6|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title6|}}}|data-minetip-title="{{{minetip-title6|{{{name6}}}}}}"}} {{#if: {{{minetip-text6|}}}|data-minetip-text="{{{minetip-text6|}}}"}}>[[File:{{{name6|Invisible-sprite}}}.png|{{{size6|16}}}x{{{size6|16}}}px|class=item-icon pixel {{{class6|}}}|link={{{item-link6|{{{name6}}}}}}|{{{tooltip6|{{{name6}}}}}}]]{{#if: {{{amount6|}}}|<span class="item-amount">{{{amount6|}}}</span>}}{{#if: {{{durability6|}}}|<span class="item-durability" data-durability="{{{durability6|}}}"></span>}}</span>}}{{#if: {{{name7|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title7|}}}|data-minetip-title="{{{minetip-title7|{{{name7}}}}}}"}} {{#if: {{{minetip-text7|}}}|data-minetip-text="{{{minetip-text7|}}}"}}>[[File:{{{name7|Invisible-sprite}}}.png|{{{size7|16}}}x{{{size7|16}}}px|class=item-icon pixel {{{class7|}}}|link={{{item-link7|{{{name7}}}}}}|{{{tooltip7|{{{name7}}}}}}]]{{#if: {{{amount7|}}}|<span class="item-amount">{{{amount7|}}}</span>}}{{#if: {{{durability7|}}}|<span class="item-durability" data-durability="{{{durability7|}}}"></span>}}</span>}}{{#if: {{{name8|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title8|}}}|data-minetip-title="{{{minetip-title8|{{{name8}}}}}}"}} {{#if: {{{minetip-text8|}}}|data-minetip-text="{{{minetip-text8|}}}"}}>[[File:{{{name8|Invisible-sprite}}}.png|{{{size8|16}}}x{{{size8|16}}}px|class=item-icon pixel {{{class8|}}}|link={{{item-link8|{{{name8}}}}}}|{{{tooltip8|{{{name8}}}}}}]]{{#if: {{{amount8|}}}|<span class="item-amount">{{{amount8|}}}</span>}}{{#if: {{{durability8|}}}|<span class="item-durability" data-durability="{{{durability8|}}}"></span>}}</span>}}{{#if: {{{name9|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title9|}}}|data-minetip-title="{{{minetip-title9|{{{name9}}}}}}"}} {{#if: {{{minetip-text9|}}}|data-minetip-text="{{{minetip-text9|}}}"}}>[[File:{{{name9|Invisible-sprite}}}.png|{{{size9|16}}}x{{{size9|16}}}px|class=item-icon pixel {{{class9|}}}|link={{{item-link9|{{{name9}}}}}}|{{{tooltip9|{{{name9}}}}}}]]{{#if: {{{amount9|}}}|<span class="item-amount">{{{amount9|}}}</span>}}{{#if: {{{durability9|}}}|<span class="item-durability" data-durability="{{{durability9|}}}"></span>}}</span>}}{{#if: {{{name10|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title10|}}}|data-minetip-title="{{{minetip-title10|{{{name10}}}}}}"}} {{#if: {{{minetip-text10|}}}|data-minetip-text="{{{minetip-text10|}}}"}}>[[File:{{{name10|Invisible-sprite}}}.png|{{{size10|16}}}x{{{size10|16}}}px|class=item-icon pixel {{{class10|}}}|link={{{item-link10|{{{name10}}}}}}|{{{tooltip10|{{{name10}}}}}}]]{{#if: {{{amount10|}}}|<span class="item-amount">{{{amount10|}}}</span>}}{{#if: {{{durability10|}}}|<span class="item-durability" data-durability="{{{durability10|}}}"></span>}}</span>}}{{#if: {{{name11|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title10|}}}|data-minetip-title="{{{minetip-title11|{{{name11}}}}}}"}} {{#if: {{{minetip-text11|}}}|data-minetip-text="{{{minetip-text11|}}}"}}>[[File:{{{name11|Invisible-sprite}}}.png|{{{size11|16}}}x{{{size11|16}}}px|class=item-icon pixel {{{class11|}}}|link={{{item-link11|{{{name11}}}}}}|{{{tooltip11|{{{name11}}}}}}]]{{#if: {{{amount11|}}}|<span class="item-amount">{{{amount11|}}}</span>}}{{#if: {{{durability11|}}}|<span class="item-durability" data-durability="{{{durability11|}}}"></span>}}</span>}}{{#if: {{{name12|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title12|}}}|data-minetip-title="{{{minetip-title12|{{{name12}}}}}}"}} {{#if: {{{minetip-text12|}}}|data-minetip-text="{{{minetip-text12|}}}"}}>[[File:{{{name12|Invisible-sprite}}}.png|{{{size12|16}}}x{{{size12|16}}}px|class=item-icon pixel {{{class12|}}}|link={{{item-link12|{{{name12}}}}}}|{{{tooltip12|{{{name12}}}}}}]]{{#if: {{{amount12|}}}|<span class="item-amount">{{{amount12|}}}</span>}}{{#if: {{{durability12|}}}|<span class="item-durability" data-durability="{{{durability12|}}}"></span>}}</span>}}{{#if: {{{name13|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title13|}}}|data-minetip-title="{{{minetip-title13|{{{name13}}}}}}"}} {{#if: {{{minetip-text13|}}}|data-minetip-text="{{{minetip-text13|}}}"}}>[[File:{{{name13|Invisible-sprite}}}.png|{{{size13|16}}}x{{{size13|16}}}px|class=item-icon pixel {{{class13|}}}|link={{{item-link13|{{{name13}}}}}}|{{{tooltip13|{{{name13}}}}}}]]{{#if: {{{amount13|}}}|<span class="item-amount">{{{amount13|}}}</span>}}{{#if: {{{durability13|}}}|<span class="item-durability" data-durability="{{{durability13|}}}"></span>}}</span>}}{{#if: {{{name14|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title14|}}}|data-minetip-title="{{{minetip-title14|{{{name14}}}}}}"}} {{#if: {{{minetip-text14|}}}|data-minetip-text="{{{minetip-text14|}}}"}}>[[File:{{{name14|Invisible-sprite}}}.png|{{{size14|16}}}x{{{size14|16}}}px|class=item-icon pixel {{{class14|}}}|link={{{item-link14|{{{name14}}}}}}|{{{tooltip14|{{{name14}}}}}}]]{{#if: {{{amount14|}}}|<span class="item-amount">{{{amount14|}}}</span>}}{{#if: {{{durability14|}}}|<span class="item-durability" data-durability="{{{durability14|}}}"></span>}}</span>}}{{#if: {{{name15|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title15|}}}|data-minetip-title="{{{minetip-title15|{{{name15}}}}}}"}} {{#if: {{{minetip-text15|}}}|data-minetip-text="{{{minetip-text15|}}}"}}>[[File:{{{name15|Invisible-sprite}}}.png|{{{size15|16}}}x{{{size15|16}}}px|class=item-icon pixel {{{class15|}}}|link={{{item-link15|{{{name15}}}}}}|{{{tooltip15|{{{name15}}}}}}]]{{#if: {{{amount15|}}}|<span class="item-amount">{{{amount15|}}}</span>}}{{#if: {{{durability15|}}}|<span class="item-durability" data-durability="{{{durability15|}}}"></span>}}</span>}} | + | {{#if: {{{name1|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title1|}}}|data-minetip-title="{{{minetip-title1|{{{name1}}}}}}"}} {{#if: {{{minetip-text1|}}}|data-minetip-text="{{{minetip-text1|}}}"}}>[[File:{{{name1|Invisible-sprite}}}.png|{{{size1|16}}}x{{{size1|16}}}px|class=item-icon pixel {{{class1|}}}|link={{{item-link1|{{{name1}}}}}}|{{{tooltip1|{{{name1}}}}}}]]{{#if: {{{amount1|}}}|<span class="item-amount">{{{amount1|}}}</span>}}{{#if: {{{durability1|}}}|<span class="item-durability" data-durability="{{{durability1|}}}"></span>}}</span>}}{{#if: {{{name2|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title2|}}}|data-minetip-title="{{{minetip-title2|{{{name2}}}}}}"}} {{#if: {{{minetip-text2|}}}|data-minetip-text="{{{minetip-text2|}}}"}}>[[File:{{{name2|Invisible-sprite}}}.png|{{{size2|16}}}x{{{size2|16}}}px|class=item-icon pixel {{{class2|}}}|link={{{item-link2|{{{name2}}}}}}|{{{tooltip2|{{{name2}}}}}}]]{{#if: {{{amount2|}}}|<span class="item-amount">{{{amount2|}}}</span>}}{{#if: {{{durability2|}}}|<span class="item-durability" data-durability="{{{durability2|}}}"></span>}}</span>}}{{#if: {{{name3|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title3|}}}|data-minetip-title="{{{minetip-title3|{{{name3}}}}}}"}} {{#if: {{{minetip-text3|}}}|data-minetip-text="{{{minetip-text3|}}}"}}>[[File:{{{name3|Invisible-sprite}}}.png|{{{size3|16}}}x{{{size3|16}}}px|class=item-icon pixel {{{class3|}}}|link={{{item-link3|{{{name3}}}}}}|{{{tooltip3|{{{name3}}}}}}]]{{#if: {{{amount3|}}}|<span class="item-amount">{{{amount3|}}}</span>}}{{#if: {{{durability3|}}}|<span class="item-durability" data-durability="{{{durability3|}}}"></span>}}</span>}}{{#if: {{{name4|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title4|}}}|data-minetip-title="{{{minetip-title4|{{{name4}}}}}}"}} {{#if: {{{minetip-text4|}}}|data-minetip-text="{{{minetip-text4|}}}"}}>[[File:{{{name4|Invisible-sprite}}}.png|{{{size4|16}}}x{{{size4|16}}}px|class=item-icon pixel {{{class4|}}}|link={{{item-link4|{{{name4}}}}}}|{{{tooltip4|{{{name4}}}}}}]]{{#if: {{{amount4|}}}|<span class="item-amount">{{{amount4|}}}</span>}}{{#if: {{{durability4|}}}|<span class="item-durability" data-durability="{{{durability4|}}}"></span>}}</span>}}{{#if: {{{name5|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title5|}}}|data-minetip-title="{{{minetip-title5|{{{name5}}}}}}"}} {{#if: {{{minetip-text5|}}}|data-minetip-text="{{{minetip-text5|}}}"}}>[[File:{{{name5|Invisible-sprite}}}.png|{{{size5|16}}}x{{{size5|16}}}px|class=item-icon pixel {{{class5|}}}|link={{{item-link5|{{{name5}}}}}}|{{{tooltip5|{{{name5}}}}}}]]{{#if: {{{amount5|}}}|<span class="item-amount">{{{amount5|}}}</span>}}{{#if: {{{durability5|}}}|<span class="item-durability" data-durability="{{{durability5|}}}"></span>}}</span>}}{{#if: {{{name6|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title6|}}}|data-minetip-title="{{{minetip-title6|{{{name6}}}}}}"}} {{#if: {{{minetip-text6|}}}|data-minetip-text="{{{minetip-text6|}}}"}}>[[File:{{{name6|Invisible-sprite}}}.png|{{{size6|16}}}x{{{size6|16}}}px|class=item-icon pixel {{{class6|}}}|link={{{item-link6|{{{name6}}}}}}|{{{tooltip6|{{{name6}}}}}}]]{{#if: {{{amount6|}}}|<span class="item-amount">{{{amount6|}}}</span>}}{{#if: {{{durability6|}}}|<span class="item-durability" data-durability="{{{durability6|}}}"></span>}}</span>}}{{#if: {{{name7|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title7|}}}|data-minetip-title="{{{minetip-title7|{{{name7}}}}}}"}} {{#if: {{{minetip-text7|}}}|data-minetip-text="{{{minetip-text7|}}}"}}>[[File:{{{name7|Invisible-sprite}}}.png|{{{size7|16}}}x{{{size7|16}}}px|class=item-icon pixel {{{class7|}}}|link={{{item-link7|{{{name7}}}}}}|{{{tooltip7|{{{name7}}}}}}]]{{#if: {{{amount7|}}}|<span class="item-amount">{{{amount7|}}}</span>}}{{#if: {{{durability7|}}}|<span class="item-durability" data-durability="{{{durability7|}}}"></span>}}</span>}}{{#if: {{{name8|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title8|}}}|data-minetip-title="{{{minetip-title8|{{{name8}}}}}}"}} {{#if: {{{minetip-text8|}}}|data-minetip-text="{{{minetip-text8|}}}"}}>[[File:{{{name8|Invisible-sprite}}}.png|{{{size8|16}}}x{{{size8|16}}}px|class=item-icon pixel {{{class8|}}}|link={{{item-link8|{{{name8}}}}}}|{{{tooltip8|{{{name8}}}}}}]]{{#if: {{{amount8|}}}|<span class="item-amount">{{{amount8|}}}</span>}}{{#if: {{{durability8|}}}|<span class="item-durability" data-durability="{{{durability8|}}}"></span>}}</span>}}{{#if: {{{name9|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title9|}}}|data-minetip-title="{{{minetip-title9|{{{name9}}}}}}"}} {{#if: {{{minetip-text9|}}}|data-minetip-text="{{{minetip-text9|}}}"}}>[[File:{{{name9|Invisible-sprite}}}.png|{{{size9|16}}}x{{{size9|16}}}px|class=item-icon pixel {{{class9|}}}|link={{{item-link9|{{{name9}}}}}}|{{{tooltip9|{{{name9}}}}}}]]{{#if: {{{amount9|}}}|<span class="item-amount">{{{amount9|}}}</span>}}{{#if: {{{durability9|}}}|<span class="item-durability" data-durability="{{{durability9|}}}"></span>}}</span>}}{{#if: {{{name10|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title10|}}}|data-minetip-title="{{{minetip-title10|{{{name10}}}}}}"}} {{#if: {{{minetip-text10|}}}|data-minetip-text="{{{minetip-text10|}}}"}}>[[File:{{{name10|Invisible-sprite}}}.png|{{{size10|16}}}x{{{size10|16}}}px|class=item-icon pixel {{{class10|}}}|link={{{item-link10|{{{name10}}}}}}|{{{tooltip10|{{{name10}}}}}}]]{{#if: {{{amount10|}}}|<span class="item-amount">{{{amount10|}}}</span>}}{{#if: {{{durability10|}}}|<span class="item-durability" data-durability="{{{durability10|}}}"></span>}}</span>}}{{#if: {{{name11|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title10|}}}|data-minetip-title="{{{minetip-title11|{{{name11}}}}}}"}} {{#if: {{{minetip-text11|}}}|data-minetip-text="{{{minetip-text11|}}}"}}>[[File:{{{name11|Invisible-sprite}}}.png|{{{size11|16}}}x{{{size11|16}}}px|class=item-icon pixel {{{class11|}}}|link={{{item-link11|{{{name11}}}}}}|{{{tooltip11|{{{name11}}}}}}]]{{#if: {{{amount11|}}}|<span class="item-amount">{{{amount11|}}}</span>}}{{#if: {{{durability11|}}}|<span class="item-durability" data-durability="{{{durability11|}}}"></span>}}</span>}}{{#if: {{{name12|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title12|}}}|data-minetip-title="{{{minetip-title12|{{{name12}}}}}}"}} {{#if: {{{minetip-text12|}}}|data-minetip-text="{{{minetip-text12|}}}"}}>[[File:{{{name12|Invisible-sprite}}}.png|{{{size12|16}}}x{{{size12|16}}}px|class=item-icon pixel {{{class12|}}}|link={{{item-link12|{{{name12}}}}}}|{{{tooltip12|{{{name12}}}}}}]]{{#if: {{{amount12|}}}|<span class="item-amount">{{{amount12|}}}</span>}}{{#if: {{{durability12|}}}|<span class="item-durability" data-durability="{{{durability12|}}}"></span>}}</span>}}{{#if: {{{name13|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title13|}}}|data-minetip-title="{{{minetip-title13|{{{name13}}}}}}"}} {{#if: {{{minetip-text13|}}}|data-minetip-text="{{{minetip-text13|}}}"}}>[[File:{{{name13|Invisible-sprite}}}.png|{{{size13|16}}}x{{{size13|16}}}px|class=item-icon pixel {{{class13|}}}|link={{{item-link13|{{{name13}}}}}}|{{{tooltip13|{{{name13}}}}}}]]{{#if: {{{amount13|}}}|<span class="item-amount">{{{amount13|}}}</span>}}{{#if: {{{durability13|}}}|<span class="item-durability" data-durability="{{{durability13|}}}"></span>}}</span>}}{{#if: {{{name14|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title14|}}}|data-minetip-title="{{{minetip-title14|{{{name14}}}}}}"}} {{#if: {{{minetip-text14|}}}|data-minetip-text="{{{minetip-text14|}}}"}}>[[File:{{{name14|Invisible-sprite}}}.png|{{{size14|16}}}x{{{size14|16}}}px|class=item-icon pixel {{{class14|}}}|link={{{item-link14|{{{name14}}}}}}|{{{tooltip14|{{{name14}}}}}}]]{{#if: {{{amount14|}}}|<span class="item-amount">{{{amount14|}}}</span>}}{{#if: {{{durability14|}}}|<span class="item-durability" data-durability="{{{durability14|}}}"></span>}}</span>}}{{#if: {{{name15|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title15|}}}|data-minetip-title="{{{minetip-title15|{{{name15}}}}}}"}} {{#if: {{{minetip-text15|}}}|data-minetip-text="{{{minetip-text15|}}}"}}>[[File:{{{name15|Invisible-sprite}}}.png|{{{size15|16}}}x{{{size15|16}}}px|class=item-icon pixel {{{class15|}}}|link={{{item-link15|{{{name15}}}}}}|{{{tooltip15|{{{name15}}}}}}]]{{#if: {{{amount15|}}}|<span class="item-amount">{{{amount15|}}}</span>}}{{#if: {{{durability15|}}}|<span class="item-durability" data-durability="{{{durability15|}}}"></span>}}</span>}}{{#if: {{{name16|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title16|}}}|data-minetip-title="{{{minetip-title16|{{{name16}}}}}}"}} {{#if: {{{minetip-text16|}}}|data-minetip-text="{{{minetip-text16|}}}"}}>[[File:{{{name16|Invisible-sprite}}}.png|{{{size16|16}}}x{{{size16|16}}}px|class=item-icon pixel {{{class16|}}}|link={{{item-link16|{{{name16}}}}}}|{{{tooltip16|{{{name16}}}}}}]]{{#if: {{{amount16|}}}|<span class="item-amount">{{{amount16|}}}</span>}}{{#if: {{{durability16|}}}|<span class="item-durability" data-durability="{{{durability16|}}}"></span>}}</span>}} |
− | {{#if: {{{name16|}}}|<span class="invslot-item ts-slide" {{#if: {{{minetip-title16|}}}|data-minetip-title="{{{minetip-title16|{{{name16}}}}}}"}} {{#if: {{{minetip-text16|}}}|data-minetip-text="{{{minetip-text16|}}}"}}>[[File:{{{name16|Invisible-sprite}}}.png|{{{size16|16}}}x{{{size16|16}}}px|class=item-icon pixel {{{class16|}}}|link={{{item-link16|{{{name16}}}}}}|{{{tooltip16|{{{name16}}}}}}]]{{#if: {{{amount16|}}}|<span class="item-amount">{{{amount16|}}}</span>}}{{#if: {{{durability16|}}}|<span class="item-durability" data-durability="{{{durability16|}}}"></span>}}</span>}} | ||
</span><noinclude> | </span><noinclude> | ||
== About == | == About == |
Latest revision as of 10:18, 19 December 2021
Contents
About
This template (named A-slot as a shortcut for Animated [item] slot) serves as an easy method to add animated icon sprites that are inside of a in-game slot, with tooltip included with the items' names and/or with extra info. Can support to up to 16 items.
Note: If the icon is not going to be animated, use Template:I-slot instead.
Usage
The syntax of the template is:
{{I-slot | name1 = <file-name> | animated1 = <true/false> | amount1 = <number> | durability1 = <number> | link1 = <item-link> | size1 = <file-size> (width and height at the same time) | class1 = <file-class> | tooltip1 = <default-tooltip-text> | minetip-title1 = <mb-minetip-title> | minetip-text1 = <mb-minetip-text> }}
The single line version is:
{{I-slot|name= <file-name>|amount= <number>|durability= <number>|link= <item-link>|size= <file-size> (width and height at the same time)|class= <file-class>|tooltip= <default-tooltip-text>|minetip-title= <mb-minetip-title>|minetip-text= <mb-minetip-text>}}
Note that minetip-title
and minetip-text
are mandatory for the tooltip to work. In case you don't need minetip-text
, you can mention the parameter and leave it empty. minetip-title
defaults to the first parameter (file-name
)'s text if it's not used.
Parameter | Function | Value type | Default value | Status |
---|---|---|---|---|
name
|
It's the item's name. It's mainly used for the image name. No format is needed to specify. | String | Invisible-sprite
|
Recommended |
amount
|
Number of the same item. | Integer | None | Optional |
durability
|
Amount of durability of the item, expressed in percentages multiples of 10. | Integer | None | Optional |
link
|
Icon's link. | Wikitext | name 's value
|
Optional |
size
|
Icon's size (both width and height share the same value to keep the image fully squared). | Integer | 16
|
Optional |
class
|
Icon's extra classes. | String | None | Optional |
tooltip
|
Icon's default tooltip text. It's automatically removed if the Mine Blocks-themed tooltip isbeing used (see below). | String | name 's value
|
Optional |
minetip-title
|
Icon's Mine Block tooltip title. | String | name 's value
|
Optional |
minetip-text
|
Icon's Mine Block tooltip text. Use the forward slash (/ ) as line breaks.
|
String | None | Optional |
Examples
Values used | Code | Result |
---|---|---|
Name |
{{I-slot | name = Wooden Planks }} |
|
Name and amount |
{{I-slot | name = Wooden Planks | amount = 64 }} |
|
Name, amount, and durability |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 0 }} |
|
Name, amount, durability and link |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 10 | link = Cow }} |
|
Name, amount, durability, link, and size |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 20 | link = Cow | size = 24 }} |
|
Name, amount, durability, link, size, and icon class |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 30 | link = Cow | size = 24 | class = thumb-class }} |
|
Name, amount, durability, link, size, icon class, and default tooltip text |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 40 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. }} |
|
Name, amount, durability, link, size, icon class, default tooltip text, and empty mb tooltip title |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 50 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. | minetip-title = }} |
|
Name, amount, durability, link, size, icon class, default tooltip text, and mb tooltip title with custom text |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 60 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. | minetip-title = Lorem Ipsum }} |
|
Name, amount, durability, link, size, icon class, default tooltip text, and empty mb tooltip text |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 70 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. | minetip-text = }} |
|
Name, amount, durability, link, size, icon class, default tooltip text, and mb tooltip with custom text |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 80 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. | minetip-text = Dolor sit amet. }} |
|
Name, amount, durability, link, size, icon class, default tooltip text, mb tooltip title with custom text, and mb tooltip with custom text |
{{I-slot | name = Wooden Planks | amount = 64 | durability = 90 | link = Cow | size = 24 | class = thumb-class | tooltip = Default tooltip text. | minetip-title = Lorem Ipsum | minetip-text = Dolor sit amet. }} |
Notes
- If a custom value for the icons' size is going to be used, it should be any of these:
16
,18
,20
,22
, or24
.- Using any other value will make the icon to not be centered.
- Using a value higher than the ones mentioned above will make the icon overflow from its container box.
- The values supported by the
durability
parameter are:10
,20
,30
,40
,50
,60
,70
,80
,90
, and100
.- Any other value will make the durability bar empty.
- Despite the default tooltip being removed if the custom mb tooltip is being used, it's recommended to not remove it (using the parameter but leaving its value empty) since it will display as a fallback in case the user has disabled their JavaScript.