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: Manual revert
No edit summary
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
! colspan="2" class="stats-header armor-header" {{!}} 🛡️ Armor Stats
{{!}}-
{{!}} colspan="2" style="padding: 0;" {{!}} {{{armor}}}
{{!}}-
{{!}}-
{{{armor}}}
}}
}}
{{#ifeq:{{{weapon|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar -->
{{#ifeq:{{{weapon|}}}||<!-- vacío -->|
! colspan="2" style="background: rgba(231, 76, 60, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} ⚔️ Weapon Stats
! colspan="2" class="stats-header weapon-header" {{!}} ⚔️ Weapon Stats
{{!}}-
{{!}} colspan="2" style="padding: 0;" {{!}} {{{weapon}}}
{{!}}-
{{!}}-
{{{weapon}}}
}}
}}
{{#ifeq:{{{tool|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar -->
{{#ifeq:{{{tool|}}}||<!-- vacío -->|
! colspan="2" style="background: rgba(241, 196, 15, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 🔧 Tool Stats
! colspan="2" class="stats-header tool-header" {{!}} 🔧 Tool Stats
{{!}}-
{{!}} colspan="2" style="padding: 0;" {{!}} {{{tool}}}
{{!}}-
{{!}}-
{{{tool}}}
}}
}}
{{#ifeq:{{{interactions|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar -->
{{#ifeq:{{{interactions|}}}||<!-- vacío -->|
! colspan="2" style="background: rgba(46, 213, 115, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 💬 Interactions
! colspan="2" class="stats-header interactions-header" {{!}} 💬 Interactions
{{!}}-
{{!}} colspan="2" style="padding: 0;" {{!}} {{{interactions}}}
{{!}}-
{{!}}-
{{{interactions}}}
}}
}}
|}
|}
<noinclude>
== Usage ==
<pre>
{{InfoBoxItem
| name = Cobalt Battleaxe
| image = Weapon_Battleaxe_Cobalt.png
| categories = Weapons, Melee
| consumable = False
| maxstack = 1
| dropondeath = False
| maxdurability = 150
| weapon = {{WeaponBlock
  | damages = {{DamageRow|Swing Down Damage|46 Physical}}
  {{DamageRow|Swing Down Left Damage|23 Physical}}
  | guards = {{DamageRow|Guard Wield|12.22}}
  }}
}}
</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>

Revision as of 23:32, 18 January 2026