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
Tag: Reverted
No edit summary
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="margin:auto"
{| class="wikitable infobox-item"
|-
{{#if:{{{name|}}}|
! {{{name}}}
! colspan="2" style="text-align:center; font-size:1.5em" {{!}} {{{name}}}
|-
{{!}}-
| [[File:{{{image}}}|64px]]
}}
{{#if:{{{image|}}}|
{{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: 1em;" {{!}} [[File:{{{image}}}|64px]]
{{!}}-
}}
{{#if:{{{categories|}}}|
{{#if:{{{categories|}}}|
|-
! Categories:
| Categories||{{{categories}}}
{{!}} {{{categories}}}
|}}    
{{!}}-
}}
{{#if:{{{consumable|}}}|
{{#if:{{{consumable|}}}|
|-
! Consumable:
| Consumable||{{{consumable}}}
{{!}} {{{consumable}}}
|}}  
{{!}}-
}}
{{#if:{{{maxstack|}}}|
{{#if:{{{maxstack|}}}|
|-
! Max Stack:
| Max Stack||{{{maxstack}}}
{{!}} {{{maxstack}}}
|}}  
{{!}}-
}}
{{#if:{{{dropondeath|}}}|
{{#if:{{{dropondeath|}}}|
|-
! Drop On Death:
| Drop On Death||{{{dropondeath}}}
{{!}} {{{dropondeath}}}
|}}  
{{!}}-
}}
{{#if:{{{maxdurability|}}}|
{{#if:{{{maxdurability|}}}|
|-
! Max Durability:
| Max Durability||{{{maxdurability}}}
{{!}} {{{maxdurability}}}
|}}  
{{!}}-
 
}}
{{{armor|}}}
{{#if:{{{armor|}}}|
{{{weapon|}}}
{{{armor}}}
<div style="display:{{#if:{{{tool|}}}|block|none}};" class="item-section">
}}
<b>Tool Stats</b><br>
{{#ifeq:{{{weapon|}}}||<!-- vacío -->|
{{{tool}}}
{{{weapon}}}
</div>
}}
 
{{#ifeq:{{{tool|}}}||<!-- vacío -->|
<div style="display:{{#if:{{{recipe|}}}|block|none}};" class="item-section">
{{{tool}}}
<b>Recipe</b><br>
}}
{{{recipe}}}
{{#ifeq:{{{interactions|}}}||<!-- vacío -->|
</div>
{{{interactions}}}
 
}}
<div style="display:{{#if:{{{interactions|}}}|block|none}};" class="item-section">
|}
<b>Interactions</b><br>
<noinclude>
{{{interactions}}}
== Usage ==
</div>
<pre>
{{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
  }}
}}
</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