Template:InfoboxItem: Difference between revisions
Template page
More actions
Hytalewiki (talk | contribs) No edit summary Tag: Manual revert |
Hytalewiki (talk | contribs) No edit summary |
||
| Line 38: | Line 38: | ||
{{{armor}}} | {{{armor}}} | ||
}} | }} | ||
{{# | {{#ifeq:{{{weapon|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar --> | ||
! colspan="2" style="background: rgba(231, 76, 60, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} ⚔️ Weapon Stats | ! colspan="2" style="background: rgba(231, 76, 60, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} ⚔️ Weapon Stats | ||
{{!}}- | {{!}}- | ||
{{{weapon}}} | {{{weapon}}} | ||
}} | }} | ||
{{# | {{#ifeq:{{{tool|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar --> | ||
! colspan="2" style="background: rgba(241, 196, 15, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 🔧 Tool Stats | ! colspan="2" style="background: rgba(241, 196, 15, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 🔧 Tool Stats | ||
{{!}}- | {{!}}- | ||
{{{tool}}} | {{{tool}}} | ||
}} | }} | ||
{{# | {{#ifeq:{{{interactions|}}}||<!-- vacío, no mostrar -->|<!-- no vacío, mostrar --> | ||
! colspan="2" style="background: rgba(46, 213, 115, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 💬 Interactions | ! colspan="2" style="background: rgba(46, 213, 115, 0.2); text-align:center; padding: 0.75em; font-size: 1.1em;" {{!}} 💬 Interactions | ||
{{!}}- | {{!}}- | ||
| Line 54: | Line 54: | ||
}} | }} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
| Line 73: | Line 72: | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
* '''name''' - Item name (appears as header) | * '''name''' - Item name (appears as header) | ||
| Line 86: | Line 84: | ||
* '''tool''' - Tool stats (use ToolBlock template) | * '''tool''' - Tool stats (use ToolBlock template) | ||
* '''interactions''' - Interaction information | * '''interactions''' - Interaction information | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 22:35, 18 January 2026
Usage
{{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}}
}}
}}
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