Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:InfoboxItem3D: Difference between revisions

Template page
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..."
 
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.5em" {{!}} {{{name}}}
! colspan="2" style="text-align:center; font-size:1.35em; white-space:normal;" {{!}} {{{name}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{image|}}}|
{{#if:{{{model|}}}|
{{!}} colspan="2" style="text-align:center; background: var(--color-surface-2); padding: 1em;" {{!}} {{#widget:BabylonViewer|source={{filepath:{{{model}}}}}}}
{{!}} 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|}}}||<!-- vacío -->|
{{#ifeq:{{{weapon|}}}||<!-- empty -->|
{{{weapon}}}
{{{weapon}}}
}}
}}
{{#ifeq:{{{tool|}}}||<!-- vacío -->|
{{#ifeq:{{{tool|}}}||<!-- empty -->|
{{{tool}}}
{{{tool}}}
}}
}}
{{#ifeq:{{{interactions|}}}||<!-- vacío -->|
{{#ifeq:{{{interactions|}}}||<!-- empty -->|
{{{interactions}}}
{{{interactions}}}
}}
}}
Line 49: Line 49:
== Usage ==
== Usage ==
<pre>
<pre>
{{InfoBoxItem
{{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
| 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 ==
* '''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]]
[[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
}}
Contents