Template:InfoboxItem: Difference between revisions
Template page
More actions
Hytalewiki (talk | contribs) No edit summary Tag: Reverted |
Hytalewiki (talk | contribs) No edit summary |
||
| (31 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="wikitable" style=" | {| 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}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{consumable|}}}| | |||
! Consumable: | |||
{{!}} {{{consumable}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{maxstack|}}}| | |||
! Max Stack: | |||
{{!}} {{{maxstack}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{dropondeath|}}}| | |||
! Drop On Death: | |||
{{!}} {{{dropondeath}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{maxdurability|}}}| | |||
! Max Durability: | |||
{{!}} {{{maxdurability}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{armor|}}}| | |||
{{{armor}}} | |||
}} | |||
{{#ifeq:{{{weapon|}}}||<!-- vacío -->| | |||
{{{weapon}}} | |||
}} | |||
{{#ifeq:{{{tool|}}}||<!-- vacío -->| | |||
{{{tool}}} | |||
{{{ | }} | ||
{{{ | {{#ifeq:{{{interactions|}}}||<!-- vacío -->| | ||
{{{interactions}}} | |||
}} | |||
|} | |||
< | <noinclude> | ||
== Usage == | |||
< | <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
Usage
edit source{{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