Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:InfoboxItem: Difference between revisions

Template page
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="wikitable infobox-item"
{| class="wikitable"
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
! colspan="2" style="text-align:center" {{!}} {{{name}}}
! colspan="2" style="text-align:center; font-size:1.5em" {{!}} {{{name}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} style="text-align:center" {{!}} [[File:{{{image}}}|64px]]
{{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: 1em;" {{!}} [[File:{{{image}}}|64px]]
{{!}}-
{{!}}-
}}
}}
Line 27: Line 26:
! Drop On Death:
! Drop On Death:
{{!}} {{{dropondeath}}}
{{!}} {{{dropondeath}}}
{{!}}-
}}
{{#if:{{{maxdurability|}}}|
! Max Durability:
{{!}} {{{maxdurability}}}
{{!}}-
}}
{{#if:{{{armor|}}}|
{{{armor}}}
}}
{{#ifeq:{{{weapon|}}}||<!-- vacío -->|
{{{weapon}}}
}}
{{#ifeq:{{{tool|}}}||<!-- vacío -->|
{{{tool}}}
}}
{{#ifeq:{{{interactions|}}}||<!-- vacío -->|
{{{interactions}}}
}}
}}
|}
|}
 
<noinclude>
 
== Usage ==
{{{armor|}}}
<pre>
{{{weapon|}}}
{{InfoBoxItem
<div style="display:{{#if:{{{tool|}}}|block|none}};" class="item-section">
| name = Adamantite Chestplate
<b>Tool Stats</b><br>
| image = Armor_Chest_Adamantite.png
{{{tool}}}
| categories = Armor - Adamantite
</div>
| consumable = False
 
| maxstack = 1
<div style="display:{{#if:{{{interactions|}}}|block|none}};" class="item-section">
| dropondeath = False
<b>Interactions</b><br>
| maxdurability = 150
{{{interactions}}}
| armor = {{ArmorBlock
</div>
  | stats = {{ArmorRow|Health|+24}}
  | resistance = {{ArmorRow|Physical|14.4%}}
{{ArmorRow|Projectile|14.4%}}
  | enhancement = {{ArmorRow|Light|6.0%}}
  | slot = Chest
  | base = 0
  | cosmetics = Overtop
  }}
}}
</pre>
== Parameters ==
* '''name''' - Item name (appears as header)
* '''image''' - Item icon (64px)
* '''categories''' - Item categories
* '''consumable''' - True/False
* '''maxstack''' - Maximum stack size
* '''dropondeath''' - True/False
* '''maxdurability''' - Maximum durability value
* '''armor''' - Armor stats (use ArmorBlock template)
* '''weapon''' - Weapon stats (use WeaponBlock template)
* '''tool''' - Tool stats (use ToolBlock template)
* '''interactions''' - Interaction information
[[Category:Templates]]
</noinclude>

Latest revision as of 23:50, 18 January 2026

{{InfoBoxItem
| name = Adamantite Chestplate
| image = Armor_Chest_Adamantite.png
| categories = Armor - Adamantite
| consumable = False
| maxstack = 1
| dropondeath = False
| maxdurability = 150
| armor = {{ArmorBlock
  | stats = {{ArmorRow|Health|+24}}
  | resistance = {{ArmorRow|Physical|14.4%}}
{{ArmorRow|Projectile|14.4%}}
  | enhancement = {{ArmorRow|Light|6.0%}}
  | slot = Chest
  | base = 0
  | cosmetics = Overtop
  }}
}}

Parameters

edit source
  • name - Item name (appears as header)
  • image - Item icon (64px)
  • categories - Item categories
  • consumable - True/False
  • maxstack - Maximum stack size
  • dropondeath - True/False
  • maxdurability - Maximum durability value
  • armor - Armor stats (use ArmorBlock template)
  • weapon - Weapon stats (use WeaponBlock template)
  • tool - Tool stats (use ToolBlock template)
  • interactions - Interaction information