No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Invslot/styles.css" />
<templatestyles src="Template:Invslot/styles.css" /><includeonly><div class="invslot {{#if:{{{class|}}}|{{{class}}}|}}" style="{{{style|}}}">[[File:{{{bg|MinecraftSlot.png}}}|64px|link=|alt=|class=invslot-bg-img]][[File:{{{item|Diamond_Sword.png}}}|32px|link={{{link|}}}|alt=|class=invslot-item-img]]{{#if:{{{count|}}}|<span class="invcount" style="{{{numstyle|}}}">{{{count}}}</span>|}}{{#if:{{{title|}}}|<div class="mctt"><div style="color:#fff;font-weight:bold;">{{#if:{{{link|}}}|[[{{{link}}}|{{{title}}}]]|{{{title}}}}}</div>{{#if:{{{l1|}}}|<div style="color:#aaa;">{{{l1}}}</div>|}}{{#if:{{{l2|}}}|<div style="color:#aaa;">{{{l2}}}</div>|}}{{#if:{{{l3|}}}|<div style="color:#aaa;">{{{l3}}}</div>|}}{{#if:{{{l4|}}}|<div style="color:#aaa;">{{{l4}}}</div>|}}</div>|}}</div></includeonly><noinclude>
 
<includeonly>
<div class="invslot {{#if:{{{class|}}}|{{{class}}}|}}" style="{{{style|}}}">
  <!-- background frame as real img, so TemplateStyles doesn't reject it -->
  <img class="invslot-bg" src="/images/3/37/MinecraftSlot.png" alt="" />
 
  <div class="slotwrap">
    [[File:{{{item|Diamond_Sword.png}}}|32px|link={{{link|}}}|class=image|title={{{title|}}}]]
 
    {{#if:{{{count|}}}|
      <span class="invcount" style="{{{numstyle|}}}">{{{count}}}</span>
    |}}
 
    {{#if:{{{title|}}}|
      <span class="mctt">
        {{{title}}}
        {{#if:{{{l1|}}}|<br />{{{l1}}}|}}
        {{#if:{{{l2|}}}|<br />{{{l2}}}|}}
        {{#if:{{{l3|}}}|<br />{{{l3}}}|}}
        {{#if:{{{l4|}}}|<br />{{{l4}}}|}}
      </span>
    |}}
  </div>
</div>
</includeonly>
 
<noinclude>
Usage:
Usage:
<pre>{{Invslot
<pre>{{Invslot

Latest revision as of 00:18, 13 December 2025

Usage:

{{Invslot
 |item=Diamond_Sword.png
 |count=1
 |title=Diamond Sword
 |l1=Damage: +7
 |l2=Unbreaking III
 |l3=Legendary
 |link=Diamond Sword
 |class=invslot-rare
 |style=border:1px solid #55ff55;
 |numstyle=color:#55ff55;
}}