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
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable infobox-item"
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
! colspan="2" style="text-align:center; font-size:1.5em" {{!}} {{{name}}}
! colspan="2" style="text-align:center; font-size:1.5em" {{!}} {{{name}}}
Line 5: Line 5:
}}
}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} colspan="2" style="text-align:center" {{!}} [[File:{{{image}}}|64px]]
{{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: 1em;" {{!}} [[File:{{{image}}}|64px]]
{{!}}-
{{!}}-
}}
}}
Line 34: Line 34:
}}
}}
{{#if:{{{armor|}}}|
{{#if:{{{armor|}}}|
! colspan="2" style="background: rgba(52, 152, 219, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 🛡️ Armor Stats
{{!}}-
{{{armor}}}
{{{armor}}}
}}
}}
{{#switch:{{{weapon|}}}
{{#ifeq:{{{weapon|}}}||<!-- vacío -->|
||<!-- vacío -->
|#default=
! colspan="2" style="background: rgba(231, 76, 60, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} ⚔️ Weapon Stats
{{!}}-
{{{weapon}}}
{{{weapon}}}
}}
}}
{{#switch:{{{tool|}}}
{{#ifeq:{{{tool|}}}||<!-- vacío -->|
||<!-- vacío -->
|#default=
! colspan="2" style="background: rgba(241, 196, 15, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 🔧 Tool Stats
{{!}}-
{{{tool}}}
{{{tool}}}
}}
}}
{{#switch:{{{interactions|}}}
{{#ifeq:{{{interactions|}}}||<!-- vacío -->|
||<!-- vacío -->
|#default=
! colspan="2" style="background: rgba(46, 213, 115, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 💬 Interactions
{{!}}-
{{{interactions}}}
{{{interactions}}}
}}
}}
Line 64: Line 50:
<pre>
<pre>
{{InfoBoxItem
{{InfoBoxItem
| name = Cobalt Battleaxe
| name = Adamantite Chestplate
| image = Weapon_Battleaxe_Cobalt.png
| image = Armor_Chest_Adamantite.png
| categories = Weapons, Melee
| categories = Armor - Adamantite
| consumable = False
| consumable = False
| maxstack = 1
| maxstack = 1
| dropondeath = False
| dropondeath = False
| maxdurability = 150
| maxdurability = 150
| weapon = {{WeaponBlock
| armor = {{ArmorBlock
   | damages = {{DamageRow|Swing Down Damage|46 Physical}}
   | stats = {{ArmorRow|Health|+24}}
  {{DamageRow|Swing Down Left Damage|23 Physical}}
  | resistance = {{ArmorRow|Physical|14.4%}}
   | guards = {{DamageRow|Guard Wield|12.22}}
{{ArmorRow|Projectile|14.4%}}
   | enhancement = {{ArmorRow|Light|6.0%}}
  | slot = Chest
  | base = 0
  | cosmetics = Overtop
   }}
   }}
}}
}}

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