Template:Invslot: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="invslot {{#if:{{{class|}}}|{{{class}}}|}}" style="{{{style|}}}">[[File:{{{item|Diamond_Sword.png}}}|32px|link={{{link|}}}]]{{#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></includeonly> | <templatestyles src="Template:Invslot/styles.css" /> | ||
<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> | <noinclude> | ||
Usage: | Usage: | ||
Revision as of 16:56, 2 November 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;
}}