Template:InfoboxItem3D: Difference between revisions
Template page
More actions
Hytalewiki (talk | contribs) Created page with "{| class="wikitable infobox-item" {{#if:{{{name|}}}| ! colspan="2" style="text-align:center; font-size:1.5em" {{!}} {{{name}}} {{!}}- }} {{#if:{{{image|}}}| {{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: 1em;" {{!}} {{#widget:BabylonViewer|source={{filepath:{{{model}}}}}}} {{!}}- }} {{#if:{{{categories|}}}| ! Categories: {{!}} {{{categories}}} {{!}}- }} {{#if:{{{consumable|}}}| ! Consumable: {{!}} {{{consumable}}} {{!}}- }} {{#if..." |
Hytalewiki (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{| class="wikitable infobox-item" | {| class="wikitable infobox-item" style="width:320px; max-width:100%; table-layout:fixed; overflow-wrap:anywhere; word-break:normal;" | ||
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
! colspan="2" style="text-align:center; font-size:1. | ! colspan="2" style="text-align:center; font-size:1.35em; white-space:normal;" {{!}} {{{name}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{model|}}}| | ||
{{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: | {{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding:0; width:320px; max-width:100%;" {{!}} <div style="width:100%; height:180px; overflow:hidden;">{{#widget:BabylonViewer|source={{filepath:{{{model}}}}}}}</div> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{categories|}}}| | {{#if:{{{categories|}}}| | ||
! Categories: | ! style="width:42%; white-space:normal;" {{!}} Categories: | ||
{{!}} {{{categories}}} | {{!}} style="width:58%; white-space:normal; overflow-wrap:anywhere;" {{!}} {{{categories}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{consumable|}}}| | {{#if:{{{consumable|}}}| | ||
! Consumable: | ! style="white-space:normal;" {{!}} Consumable: | ||
{{!}} {{{consumable}}} | {{!}} style="white-space:normal; overflow-wrap:anywhere;" {{!}} {{{consumable}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{maxstack|}}}| | {{#if:{{{maxstack|}}}| | ||
! Max Stack: | ! style="white-space:normal;" {{!}} Max Stack: | ||
{{!}} {{{maxstack}}} | {{!}} style="white-space:normal; overflow-wrap:anywhere;" {{!}} {{{maxstack}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{dropondeath|}}}| | {{#if:{{{dropondeath|}}}| | ||
! Drop On Death: | ! style="white-space:normal;" {{!}} Drop On Death: | ||
{{!}} {{{dropondeath}}} | {{!}} style="white-space:normal; overflow-wrap:anywhere;" {{!}} {{{dropondeath}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{maxdurability|}}}| | {{#if:{{{maxdurability|}}}| | ||
! Max Durability: | ! style="white-space:normal;" {{!}} Max Durability: | ||
{{!}} {{{maxdurability}}} | {{!}} style="white-space:normal; overflow-wrap:anywhere;" {{!}} {{{maxdurability}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 36: | Line 36: | ||
{{{armor}}} | {{{armor}}} | ||
}} | }} | ||
{{#ifeq:{{{weapon|}}}||<!-- | {{#ifeq:{{{weapon|}}}||<!-- empty -->| | ||
{{{weapon}}} | {{{weapon}}} | ||
}} | }} | ||
{{#ifeq:{{{tool|}}}||<!-- | {{#ifeq:{{{tool|}}}||<!-- empty -->| | ||
{{{tool}}} | {{{tool}}} | ||
}} | }} | ||
{{#ifeq:{{{interactions|}}}||<!-- | {{#ifeq:{{{interactions|}}}||<!-- empty -->| | ||
{{{interactions}}} | {{{interactions}}} | ||
}} | }} | ||
| Line 49: | Line 49: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{ | {{InfoboxItem3D | ||
| name = Adamantite Chestplate | | name = Adamantite Chestplate | ||
| image = Armor_Chest_Adamantite.png | | image = Armor_Chest_Adamantite.png | ||
| Line 58: | Line 58: | ||
| dropondeath = False | | dropondeath = False | ||
| maxdurability = 150 | | maxdurability = 150 | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:13, 5 June 2026
Usage
{{InfoboxItem3D
| name = Adamantite Chestplate
| image = Armor_Chest_Adamantite.png
| model = Armor_Chest_Adamantite.gltf
| categories = Armor - Adamantite
| consumable = False
| maxstack = 1
| dropondeath = False
| maxdurability = 150
}}