Conan Exiles Wiki
(Undo revision 165761 by Testerle (talk))
Tag: Undo
 
(54 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
This is the "Item" template.
 
This is the "Item" template.
{{#cargo_declare:_table=Item
+
{{#cargo_attach:_table=Item}}
| name=String
 
| uniqueName=String
 
| image=String
 
| type=String
 
| bonus=String
 
| insulation_type=String
 
| grade=String
 
| quality=String (size=25;allowed values=Base, Exceptional, Flawless, Base Epic, Exceptional Epic, Flawless Epic, Legendary, Hallowed, Consumable)
 
| ingredient=String
 
| combust=String
 
| melt=String
 
| utility=String
 
| building_health=Integer
 
| building_damage_tier=String
 
| stack=Integer
 
| food=Integer
 
| drink=Integer
 
| healthregen=String
 
| wheel=String
 
| dmg=Integer
 
| lightdmg=Integer
 
| heavydmg=Integer
 
| lightcus=Integer
 
| heavycus=Integer
 
| harvesting_power=Integer
 
| armor_pen=Float
 
| dura=Float
 
| armor=Float
 
| armortype=String
 
| armorset=String
 
| equipslot=Integer
 
| weapontype=String
 
| weaponarchetype=String
 
| poise=Integer
 
| heatres=Float
 
| coldres=Float
 
| bonus=String
 
| expiration=String
 
| weight=Float
 
| effect=String
 
| source=String
 
| id=Integer
 
| isCraftable=String
 
| isCraftingStation=Boolean
 
| canBeDismantled=Boolean
 
| isPotion=Boolean
 
| dlcPackage=String
 
| description=String
 
}}
 
 
</noinclude><includeonly>{{#if:{{NAMESPACE}}{{{nocargo|}}}||{{#cargo_store:_table=Item
 
</noinclude><includeonly>{{#if:{{NAMESPACE}}{{{nocargo|}}}||{{#cargo_store:_table=Item
 
| name={{{name|}}}
 
| name={{{name|}}}
 
| uniqueName={{{uniqueName|}}}
 
| uniqueName={{{uniqueName|}}}
 
| image={{{image|}}}
 
| image={{{image|}}}
  +
| epicBorder={{#if: {{{epicBorder|}}} | {{{epicBorder|}}} | no }}
 
| type={{{type|}}}
 
| type={{{type|}}}
 
| bonus={{{bonus|}}}
 
| bonus={{{bonus|}}}
Line 95: Line 47:
 
| isCraftable={{{isCraftable|}}}
 
| isCraftable={{{isCraftable|}}}
 
| isCraftingStation={{{isCraftingStation|}}}
 
| isCraftingStation={{{isCraftingStation|}}}
  +
| slots={{{slots|}}}
  +
| craftTimeMultiplier={{{craftTimeMultiplier|}}}
  +
| materialUseMultiplier={{{materialUseMultiplier|}}}
 
| canBeDismantled={{{canBeDismantled|}}}
 
| canBeDismantled={{{canBeDismantled|}}}
 
| isPotion={{{isPotion|}}}
 
| isPotion={{{isPotion|}}}
 
| dlcPackage={{{dlcPackage|}}}
 
| dlcPackage={{{dlcPackage|}}}
 
| description={{{desc|}}}
 
| description={{{desc|}}}
  +
| perishModifier={{{perishModifier|}}}
  +
| burnTime={{{burnTime|}}}
  +
| isImplemented={{#if: {{{isImplemented|}}} | {{{isImplemented|}}} | yes }}
 
}}<!-- end if namespace or nocargo -->}}{{#invoke:ItemLink|updateCache|{{{uniqueName|}}}<!-- end invoke -->}}
 
}}<!-- end if namespace or nocargo -->}}{{#invoke:ItemLink|updateCache|{{{uniqueName|}}}<!-- end invoke -->}}
 
{| class="infobox" cellspacing="0" style="clear:right"
 
{| class="infobox" cellspacing="0" style="clear:right"
 
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
 
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
 
|-
 
|-
| colspan="2" style="text-align:center;" | {{#if: {{{image|}}} | {{#if: {{{dlcPackage|}}} | <span style="position: relative; left: 64px;">[[File:{{{image}}}|128px|link=|{{{name|{{PAGENAME}}}}}]]</span><span style="position: relative; left: -64px;">[[File:T DLC icon.png|128px|link=]]</span> | [[File:{{{image}}}|128px|{{{name|{{PAGENAME}}}}}]] }} | [[File:Icon DEV needs icon.png|128px|Icon needed]] [[Category:Infoboxes lacking images]] }}
+
| colspan="2" style="text-align:center;" | {{#if: {{{image|}}} | {{#if: {{{epicBorder|}}} | <span class="epic-border-wrapper128"> }} {{#if: {{{dlcPackage|}}} | <span class="dlc-image-wrapper128"> }} [[File:{{{image}}}|128px|{{{name|{{PAGENAME}}}}}]] {{#if: {{{dlcPackage|}}} | </span> }} {{#if: {{{epicBorder|}}} | </span> }} | [[File:Icon DEV needs icon.png|128px|Icon needed]] }}
 
|-
 
|-
 
{{#if: {{{desc|}}} | {{!}} colspan="2" style="text-align:center;" {{!}} ''{{{desc}}}'' }}
 
{{#if: {{{desc|}}} | {{!}} colspan="2" style="text-align:center;" {{!}} ''{{{desc}}}'' }}
Line 109: Line 67:
 
{{#if: {{{type|}}} | ! class="infoboxlabel" {{!}} Type {{!!}} {{{type}}} }}
 
{{#if: {{{type|}}} | ! class="infoboxlabel" {{!}} Type {{!!}} {{{type}}} }}
 
|-
 
|-
{{#if: {{{bonus|}}} | ! class="infoboxlabel" {{!}} Bonus {{!!}} {{{bonus}}} }}
+
{{#if: {{{bonus|}}} | ! class="infoboxlabel" {{!}} Base Bonus <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{bonus}}} }}
 
|-
 
|-
 
{{#if: {{{insulation type|}}} | ! class="infoboxlabel" {{!}} Insulation Type {{!!}} {{{insulation type}}} }}
 
{{#if: {{{insulation type|}}} | ! class="infoboxlabel" {{!}} Insulation Type {{!!}} {{{insulation type}}} }}
Line 149: Line 107:
 
{{#if: {{{wheel|}}} | ! class="infoboxlabel" {{!}} Wheel of Pain time {{!!}} {{{wheel}}} }}
 
{{#if: {{{wheel|}}} | ! class="infoboxlabel" {{!}} Wheel of Pain time {{!!}} {{{wheel}}} }}
 
|-
 
|-
{{#if: {{{dmg|}}} | ! class="infoboxlabel" {{!}} Damage {{!!}} {{{dmg}}} }}
+
{{#if: {{{dmg|}}} | ! class="infoboxlabel" {{!}} Base Damage <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{dmg}}} }}
 
|-
 
|-
 
{{#if: {{{lightdmg|}}} | ! class="infoboxlabel" {{!}} Light Damage {{!!}} {{{lightdmg}}} }}
 
{{#if: {{{lightdmg|}}} | ! class="infoboxlabel" {{!}} Light Damage {{!!}} {{{lightdmg}}} }}
Line 159: Line 117:
 
{{#if: {{{heavycus|}}} | ! class="infoboxlabel" {{!}} Heavy Concussive Damage {{!!}} {{{heavycus}}} }}
 
{{#if: {{{heavycus|}}} | ! class="infoboxlabel" {{!}} Heavy Concussive Damage {{!!}} {{{heavycus}}} }}
 
|-
 
|-
{{#if: {{{armor pen|}}} | ! class="infoboxlabel" {{!}} Armor Penetration {{!!}} {{{armor pen}}} }}
+
{{#if: {{{armor pen|}}} | ! class="infoboxlabel" {{!}} Base Armor Penetration <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{armor pen}}} }}
 
|-
 
|-
 
{{#if: {{{harvesting power|}}} | ! class="infoboxlabel" {{!}} Harvesting Power {{!!}} {{{harvesting power}}} }}
 
{{#if: {{{harvesting power|}}} | ! class="infoboxlabel" {{!}} Harvesting Power {{!!}} {{{harvesting power}}} }}
 
|-
 
|-
{{#if: {{{armor|}}} | ! class="infoboxlabel" {{!}} Armor {{!!}} {{{armor}}} }}
+
{{#if: {{{armor|}}} | ! class="infoboxlabel" {{!}} Base Armor <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{armor}}} }}
 
|-
 
|-
{{#if: {{{heatres|}}} | ! class="infoboxlabel" {{!}} Heat Isolation {{!!}} {{{heatres}}} }}
+
{{#vardefine:hbars | {{#expr:floor({{{heatres}}}/4) + {{#ifexpr:{{{heatres}}}mod4>0|1|0}} }} }}
  +
{{#if: {{{heatres|}}} | ! class="infoboxlabel" {{!}} Base Heat Resist <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} [[File:T_tooltip_warmIcon.png|frameless|32px|link=]]{{#loop: count | 1 | 5 | {{#ifexpr: {{#var:hbars}}>={{#var:count}} | [[File:T_tooltip_warmSlot.png|frameless|link=]] | [[File:T_tooltip_emptySlot.png|frameless|link=]] }} }} ({{{heatres}}}) }}
 
|-
 
|-
{{#if: {{{coldres|}}} | ! class="infoboxlabel" {{!}} Cold Isolation {{!!}} {{{coldres}}} }}
+
{{#vardefine:cbars | {{#expr:floor({{{coldres}}}/4) + {{#ifexpr:{{{coldres}}}mod4>0|1|0}} }} }}
  +
{{#if: {{{coldres|}}} | ! class="infoboxlabel" {{!}} Base Cold Resist <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} [[File:T_tooltip_coldIcon.png|frameless|32px|link=]]{{#loop: ccount | 1 | 5 | {{#ifexpr: {{#var:cbars}}>={{#var:ccount}} | [[File:T_tooltip_coldSlot.png|frameless|link=]] | [[File:T_tooltip_emptySlot.png|frameless|link=]] }} }} ({{{coldres}}}) }}
 
|-
 
|-
 
{{#if: {{{expiration|}}} | ! class="infoboxlabel" {{!}} Expiration {{!!}} {{{expiration}}} }}
 
{{#if: {{{expiration|}}} | ! class="infoboxlabel" {{!}} Expiration {{!!}} {{{expiration}}} }}
Line 173: Line 133:
 
{{#if: {{{expirsTo|}}} | ! class="infoboxlabel" {{!}} Expires to {{!!}} [[{{{expirsTo}}}]] }}
 
{{#if: {{{expirsTo|}}} | ! class="infoboxlabel" {{!}} Expires to {{!!}} [[{{{expirsTo}}}]] }}
 
|-
 
|-
{{#if: {{{dura|}}} | ! class="infoboxlabel" {{!}} Durability {{!!}} {{{dura}}} }}
+
{{#if: {{{decayReduction|}}} | ! class="infoboxlabel" {{!}} Decay Reduction {{!!}} {{{decayReduction}}} }}
 
|-
 
|-
{{#if: {{{weight|}}} | ! class="infoboxlabel" {{!}} Weight {{!!}} {{{weight}}} }}
+
{{#if: {{{dura|}}} | ! class="infoboxlabel" {{!}} Base Durability <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{dura}}} }}
  +
|-
  +
{{#if: {{{weight|}}} | ! class="infoboxlabel" {{!}} Base Weight <span title="Base value without thrall bonus!">[[File:Information.png|frameless|16px|link=]]</span> {{!!}} {{{weight}}} }}
 
|-
 
|-
 
{{#if: {{{effect|}}} | ! class="infoboxlabel" {{!}} Effects {{!!}} {{#replace:{{{effect}}}|,|<br/>}} }}
 
{{#if: {{{effect|}}} | ! class="infoboxlabel" {{!}} Effects {{!!}} {{#replace:{{{effect}}}|,|<br/>}} }}
Line 213: Line 175:
 
|architects of argos pack= [[Category:Architects of Argos Pack]]
 
|architects of argos pack= [[Category:Architects of Argos Pack]]
 
|isle of siptah= [[Category:Isle of Siptah]]
 
|isle of siptah= [[Category:Isle of Siptah]]
  +
|people of the dragon pack= [[Category:People of the Dragon Pack]]
}}</includeonly><noinclude>{{doc}}
 
  +
}}{{#if: {{#pos: {{{effect|}}} | Sated }} | [[Category:Healing]] }}{{#ifeq: {{#expr: {{{perishModifier|}}}<1}} | 1 | [[Category:Decay Reduction]] }}</includeonly><noinclude>{{doc}}
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 17:46, 22 May 2022

This is the "Item" template. This template adds rows to the table "Item", which is declared by the template Item/CargoDec. View table.

Template-info.png Documentation
Stone
Stone
Roughly hewn chunk of stone
Type Material
Grade Low
Ingredient Yes
Max Stack 100
Base Weight Information.png 0.13
Effects effect 1
effect 2
Source Various
ID 10001

Usage

{{Item infobox
| name                 = 
| image                = 
| desc                 = 
| type                 = 
| grade                = 
| quality              = 
| ingredient           = 
| combust              = 
| consume              = 
| melt                 = 
| utility              = 
| building health      = 
| building damage tier = 
| stack                = 
| food                 = 
| drink                = 
| healthregen          = 
| dmg                  = 
| lightdmg             = 
| heavydmg             = 
| armor pen            = 
| dura                 = 
| armor                = 
| armortype            = 
| equipslot            = 
| armorset             = 
| bonus                = 
| poise                = 
| heatres              = 
| coldres              = 
| expiration           = 
| weight               = 
| effect               = 
| source               = 
| id                   = 
}}

Parameters

name
Name of the item. Defaults to {{PAGENAME}}.
image
Image of the item. Format: xxxxx.png Auto sizes to 100px in width.
desc
Short description of the item.
type
Type of item.
grade
Grade of the item.
quality
Base, Exceptional, Flawless, Base Epic, Exceptional Epic, Flawless Epic, Legendary, Hallowed, Consumable
equipslot (values according to DevKit)
For armor: 3 for Helmet, 4 for Chest Armor, 5 for Gloves Armor, 6 for Legs Armor, 7 for Feet Armor
For Tools/Weapons: 1 for Main Hand/Right Hand, 2 for Off-Hand/Left Hand, 8 for Two-Handed, 11 for Warpaint
ingredient
If the item is an ingredient, enter Yes.
combust
If the item is combustable, enter Yes.
consume
If the item is consumable, enter Yes.
melt
If the item is meltable, enter Yes.
utility
If the item is a utility item, enter Yes.
building health
If the item is a building item, enter the amount of health the building is created with.
building damage tier
If the item is a building item, enter the weapon damage tier the building is affected by.
stack
Max stack of the item.
food
The amount of hunger sated by consuming the item.
drink
The amount of thirst quenched by drinking the item.
healthregen
The ammount of health recovered by using the item.
dmg
The damage the item inflicts.
lightdmg
Damage caused by a light attack
heavydmg
Damage caused by a heavy attack
armor pen
The armor penetration of the item.
harvesting power
the amount of basic resources gained from each swing when striking an appropriate resource node.
dura
The durability of the item.
armor
The armor value of the item.
armortype
For armor only, this is one of Light, Medium, or Heavy
armorset
For armor only: Name of the Set (f.e. "Relic Hunter" or "Vanir Settler")
bonus
The Attribute bonus that is granted by this item. E.g. +5 Vitality.
poise
The poise value of the item.
heatres
The heat resistance of the item.
coldres
The cold resistance of the item.
expiration
If the item has an expiration time limit, enter the maximum numerical time value before the item spoils.
weight
Weight of the item.
effect
If the item adds a buff / debuff, enter the name of the effect(s).
source
From what or where the item was obtained (e.g. creature, location, etc)
id
Item ID #.