Template:InfoboxItem: Difference between revisions
Template page
More actions
Hytalewiki (talk | contribs) No edit summary |
Hytalewiki (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{| class="wikitable" | {| class="wikitable" | ||
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
| Line 6: | Line 5: | ||
}} | }} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}} colspan=2 style="text-align:center" {{!}} [[File:{{{image}}}|64px]] | {{!}} colspan="2" style="text-align:center" {{!}} [[File:{{{image}}}|64px]] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 27: | Line 26: | ||
! Drop On Death: | ! Drop On Death: | ||
{{!}} {{{dropondeath}}} | {{!}} {{{dropondeath}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{maxdurability|}}}| | |||
! Max Durability: | |||
{{!}} {{{maxdurability}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{armor|}}}| | |||
! colspan="2" style="background: rgba(52, 152, 219, 0.1); text-align:center;" {{!}} Armor Stats | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{{armor}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{weapon|}}}| | |||
! colspan="2" style="background: rgba(231, 76, 60, 0.1); text-align:center;" {{!}} Weapon Stats | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{{weapon}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{tool|}}}| | |||
! colspan="2" style="background: rgba(241, 196, 15, 0.1); text-align:center;" {{!}} Tool Stats | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{{tool}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{interactions|}}}| | |||
! colspan="2" style="background: rgba(46, 213, 115, 0.1); text-align:center;" {{!}} Interactions | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{{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 21:15, 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