Template:InfoboxItem: Difference between revisions
Template page
More actions
Hytalewiki (talk | contribs) No edit summary Tags: Manual revert Reverted |
Hytalewiki (talk | contribs) No edit summary |
||
| (12 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|}}}| | ||
{{{armor}}} | {{{armor}}} | ||
}} | }} | ||
{{#ifeq:{{{weapon|}}}||<!-- | {{#ifeq:{{{weapon|}}}||<!-- vacío -->| | ||
{{{weapon}}} | {{{weapon}}} | ||
}} | }} | ||
{{# | {{#ifeq:{{{tool|}}}||<!-- vacío -->| | ||
! | |||
{{{tool}}} | {{{tool}}} | ||
}} | }} | ||
{{# | {{#ifeq:{{{interactions|}}}||<!-- vacío -->| | ||
! | |||
{{{interactions}}} | {{{interactions}}} | ||
}} | }} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{InfoBoxItem | {{InfoBoxItem | ||
| name = | | name = Adamantite Chestplate | ||
| image = | | image = Armor_Chest_Adamantite.png | ||
| categories = | | categories = Armor - Adamantite | ||
| consumable = False | | consumable = False | ||
| maxstack = 1 | | maxstack = 1 | ||
| dropondeath = False | | dropondeath = False | ||
| maxdurability = 150 | | 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> | </pre> | ||
== Parameters == | == Parameters == | ||
* '''name''' - Item name (appears as header) | * '''name''' - Item name (appears as header) | ||
| Line 86: | Line 80: | ||
* '''tool''' - Tool stats (use ToolBlock template) | * '''tool''' - Tool stats (use ToolBlock template) | ||
* '''interactions''' - Interaction information | * '''interactions''' - Interaction information | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </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