Difference between revisions of "Template:Infobox item"

From Underrail Wiki
Jump to navigation Jump to search
(combined all item infoboxes into one for ease of updating)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{| style={{Infobox common style}}
 
{| style={{Infobox common style}}
|-
+
<!--
{{#if:{{{example|}}}
+
 
|{{!}} style="color:white; text-align:center;" colspan="2" {{!}}''This is an example of '''{{PAGENAME}}'''.<br>Its actual stats depend on components used and/or quality.''
+
 
----
+
example box. appears if item is set to be an example.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{example|}}}
 +
  |{{!}} style="color:white; text-align:center;" colspan="2" {{!}}<!--
 +
  -->''This is an example of '''{{PAGENAME}}'''.<br>Its actual stats depend on components used and their quality.''<hr>
 +
  |{{#ifexpr: {{{quality|1-2}}} < 0 <!-- includes example text for components if quality is not a range -->
 +
    |
 +
    |{{!}} style="color:white; text-align:center;" colspan="2" {{!}}<!--
 +
    -->''This is an example of '''{{PAGENAME}}'''.<br>Its actual stats depend on quality.''<hr>
 +
  }}
 +
}}
 +
<!--
 +
 
 +
 
 +
 
 +
item image column. check if the item is ammo, autolink image if so. if not, use {{{image}}} if set.
 +
-->|-
 +
{{#if:{{{caliber|}}}
 +
|{{!}} rowspan="3" width="50px" height="50px" align="center" valign="center" title="{{PAGENAME}} icon" {{!}}<!--
 +
-->[[File:Ammo_{{{caliber|5mm}}}{{#switch:{{{type}}}|Standard=|JHP=_jhp|W2C=_w2c|}}.png|link=]]
 +
|{{!}} rowspan="3" width="50px" height="50px" align="center" valign="center" title="{{#if:{{{image|}}}|{{PAGENAME}} icon|Default icon}}" {{!}}<!--
 +
-->{{#if:{{{image|}}}|[[File:{{{image}}}|link=]]|[[File:Misc_icon.png|link=]]}}
 +
}}
 +
<!--
 +
 
 +
 
 +
item name row. color of item name is quality-dependent.
 +
-->|-
 +
{{#if:{{{caliber|}}}
 +
|{{!}} style="font-size:127%; color:{{#switch:{{{type}}}<!-- if item is ammunition -->
 +
| Standard  = white
 +
| JHP | WC2 = lightgreen
 +
| #default  = white
 +
}}; font-weight:bold;" title="{{#switch:{{{type}}}
 +
| Standard  = Quality: Normal
 +
| JHP | W2C = Quality: High
 +
| #default  = No quality specified
 +
}}" {{!}}<!--
 +
-->{{{caliber|(caliber)}}} {{{type|(type)}}} Round
 +
|{{!}} style="font-size:127%; color:{{#switch:{{{itemquality}}}<!-- if item is not ammunition -->
 +
| low      = gray
 +
| normal  = white
 +
| high    = lightgreen
 +
| rarity  = MediumPurple
 +
| artifact = Orange
 +
| #default = white
 +
}}; font-weight:bold;" title="{{#switch:{{{itemquality}}}
 +
| low      = Item quality: Low
 +
| normal  = Item quality: Normal
 +
| high    = Item quality: High
 +
| rarity  = Item quality: Rarity
 +
| artifact = Item quality: Artifact
 +
| #default = No quality specified
 +
}}" {{!}}<!--
 +
-->{{{name}}}
 +
}}
 +
<!--
 +
 
 +
 
 +
item type row. it is checked and manipulated to account for the old blueprint/component/ammo templates.
 +
-->|-
 +
| style="color:yellow;" title="Item type" |<!--
 +
-->{{#if:{{{component1|}}}
 +
    |Blueprint
 +
    |{{#if:{{{caliber|}}}
 +
        |Ammo
 +
        |{{#if:{{{quality|}}}{{{skillsreq|}}}
 +
          |Component
 +
          |{{{type}}}
 +
        }}
 +
      }}
 +
  }}
 +
<!--
 +
 
 +
 
 +
item description row. if it's not a blueprint, limit width.
 +
-->|-
 +
| style="max-width:{{#if:{{{component1|}}}|500px|400px}}; color:gray;" colspan="2" title="Item description" |<!--
 +
-->{{#if:{{{caliber|}}}
 +
    |{{#switch:{{{type}}}
 +
        | Standard = This is a standard {{{caliber|(caliber)}}} round.
 +
        | JHP      = This is a {{{caliber|(caliber)}}} jacketed hollow point round.
 +
        | W2C      = This armor-piercing cartridge packs a {{{caliber|(caliber)}}} tungsten carbide bullet.
 +
        | #default = {{{caliber|(caliber)}}} round, no type specified.
 +
      }}
 +
    |{{{description}}}
 +
  }}
 +
<!--
 +
 
 +
 
 +
component quality row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{quality|}}}
 +
|{{!}} style="color:white;" colspan="2"  title="Component quality" {{!}}<!--
 +
-->{{#ifexpr: {{{quality|1}}} < 0 | Quality range:| Quality:}} {{{quality}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
crafting skills required row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{skillsreq|}}}
 +
|{{!}} style="color:white;" colspan="2"  title="List of required crafting skills" {{!}}<!--
 +
-->Required crafting skills{{#if:<noinclude>string</noinclude>{{{quality|}}}|{{#ifexpr: {{{quality|1}}} < 0 |&nbsp;(as percentage of quality)|}}|}}:
 +
<noinclude>:</noinclude>{{{skillsreq}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon damage row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{damage|}}}
 +
|{{!}} style="color:white; height:2.5em;" valign="middle" colspan="2" title="Damage per shot and damage type" {{!}}<!--
 +
-->Damage: {{{damage}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon impact speed row. its color depends on "impactspeed" value.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{impactspeed|}}}
 +
|{{!}} style="color:white;" colspan="2"  title="Impact speed determines shield penetration" {{!}}<!--
 +
-->Impact Speed: <span style="color:{{#switch:{{{impactspeed}}}
 +
| Very Low  = teal
 +
| Low      = teal
 +
| Medium    = gray
 +
| High      = DarkSalmon
 +
| Very High = DarkSalmon
 +
| #default  = gray
 +
}};">{{{impactspeed}}}</span>
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon action point cost row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{ap|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Action point cost" {{!}}<!--
 +
-->Action Points: {{{ap}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon range row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{range|}}}
 +
|{{!}} style="color:white;" colspan="2"  colspan="2" title="Maximum and optimal range" {{!}}<!--
 +
-->Range: {{{range}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon precision row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{precision|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Precision modifies your chance to hit" {{!}}<!--
 +
-->Precision: {{{precision)}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon burst precision row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{burstprec.|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Burst precision" {{!}}<!--
 +
-->Burst precision: {{{burstprec.}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon close quarters precision row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{cqprec.|}}}
 +
|{{!}} style="color:white;" colspan="2" title="CQB precision penalty" {{!}}<!--
 +
-->Close quarters precision: {{color|red|{{{cqprec.}}}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon move & shoot precision penalty row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{moveprec.|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Unfocused precision penalty" {{!}}<!--
 +
-->Move and shoot precision: {{color|red|{{{moveprec.}}}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
weapon critical hit chance row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{critchance|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Chance to critically hit" {{!}}<!--
 +
-->Critical chance: {{{critchance}}}
 
|}}
 
|}}
 +
<!--
  
|-
 
| rowspan="3" width="50px" height="50px" align="center" valign="center" title="{{#if:{{{image|}}}|{{PAGENAME}} icon|Default icon}}" |{{#if:{{{image|}}}|[[File:{{{image}}}|link=]]|[[File:Misc_icon.png|link=]]}}
 
  
|- <!-- color of item name is quality-dependent -->
+
armor resistances row.
| style="color:{{#switch: {{{itemquality}}} | low = gray | normal = white | high = lightgreen | rarity = MediumPurple | artifact = Orange | white }}; font-weight:bold;" title="{{#switch: {{{itemquality}}} | low = Item quality: Low | normal = Item quality: Normal | high = Item quality: High | rarity = Item quality: Rarity | artifact = Item quality: Artifact | No quality specified }}" |{{{name|(item's name)}}}
+
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{resistances|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Damage resistance and treshold provided" {{!}}<!--
 +
-->Resistances:
 +
<noinclude>:</noinclude>{{{resistances}}}
 +
|}}
 +
<!--
 +
 
  
|-
+
armor encumberance row.
| style="color:yellow;" title="Item type" |{{{type|(item's type)}}}
+
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{encumbrance|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Encumbrance reduces movement points, dodge, evasion and stealth" {{!}}<!--
 +
-->Encumbrance: {{color|red|{{{encumbrance}}}}}
 +
|}}
 +
<!--
  
|-
 
| style="max-width:400px; color:gray;" colspan="2" title="Item description" |{{{description|(item's description)}}}
 
  
|-
+
generic white stats row.
 +
-->|-
 
{{#if:<noinclude>string</noinclude>{{{whitestats|}}}
 
{{#if:<noinclude>string</noinclude>{{{whitestats|}}}
|{{!}} style="color:white;" colspan="2" title="Other stats" {{!}}{{{whitestats|any white stats not covered by the template (optional)}}}
+
|{{!}} style="color:white;" colspan="2" title="Other stats" {{!}}<!--
 +
-->{{{whitestats}}}<noinclude><small> (try to avoid using this. it's provided only for compatibility reasons)</small></noinclude>
 
|}}
 
|}}
 +
<!--
  
|-
+
 
 +
generic green stats row. item type is checked and manipulated to account for the old blueprint/ammo templates.
 +
-->|-
 
{{#if:<noinclude>string</noinclude>{{{greenstats|}}}
 
{{#if:<noinclude>string</noinclude>{{{greenstats|}}}
|{{!}} style="color:green;" colspan="2"  title="Item uses and other stats" {{!}}{{{greenstats|uses and other green stats (optional)}}}
+
|{{!}} style="color:green;" colspan="2"  title="Item uses and other stats" {{!}}<!--
 +
-->{{#if:{{{component1|}}}
 +
    |Use: Download blueprint into your wristpad.
 +
    |{{#if:{{{caliber|}}}
 +
        |{{#switch:{{{type}}}
 +
          | JHP = - Incurs 150% of mechanical damage resistance and threshold, but the damage that penetrates the armor is increased by 25% against organic targets.
 +
          | W2C = - Ignores 50% of the target's mechanical damage resistance and threshold.
 +
          | #default =}}
 +
 
 +
Use: Reload a weapon with {{{caliber}}} {{{type}}} rounds.<br>(AP: 15)
 +
 
 +
Use: Reload the current weapon with {{{caliber}}} {{{type}}} rounds.<br>(AP: 15)
 +
 
 +
Use: Loads a single {{{caliber}}} {{{type}}} round into a weapon. Can only be performed out of combat.<br>(AP: 15)
 +
 
 +
Use: Loads a single {{{caliber}}} {{{type}}} round into the current weapon. Can only be performed out of combat.<br>(AP: 15)
 +
        |{{{greenstats}}}<noinclude><small> (uses, equip bonuses and all the other stuff written in green)</small></noinclude>
 +
      }}
 +
  }}
 +
|}}
 +
<!--
 +
 
 +
 
 +
minimal strength requirement row for armor/weapons.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{minstr|}}}
 +
|{{!}} style="color:white; height:2.5em;" valign="bottom" colspan="2" title="Minimum strength requirement" {{!}}<!--
 +
-->Minimal strength: {{{minstr}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
minimal skill requirement row for weapons.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{minskill|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Minimum skill requirement" {{!}}<!--
 +
-->Minimal weapon skill: {{{minskill)}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
ammo type row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{ammotype|}}}
 +
|{{!}} style="color:white; height:2.5em;" valign="bottom" colspan="2" title="Type of ammunition used" {{!}}<!--
 +
-->Ammo type: {{{ammotype}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
magazine capacity row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{magcap|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Magazine ammunition capacity" {{!}}<!--
 +
-->Magazine capacity: {{{magcap}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
energy per shot row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{energy/shot|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Energy/shot" {{!}}<!--
 +
-->Energy usage per shot: {{color|green|{{{energy/shot}}}}}
 +
|}}
 +
<!--
 +
 
 +
 
 +
energy capacity row.
 +
-->|-
 +
{{#if:<noinclude>string</noinclude>{{{energy|}}}
 +
|{{!}} style="color:white;" colspan="2" title="Energy storage capacity" {{!}}<!--
 +
-->Energy: {{color|green|{{{energy}}}}}
 
|}}
 
|}}
 +
<!--
 +
  
|-
+
generic whitestats2 row.
 +
-->|-
 
{{#if:<noinclude>string</noinclude>{{{whitestats2|}}}
 
{{#if:<noinclude>string</noinclude>{{{whitestats2|}}}
|{{!}} style="color:white;" colspan="2" title="Other stats" {{!}}{{{whitestats2|any white stats below the green stats (optional)}}}
+
|{{!}} style="color:white;" colspan="2" title="Other stats" {{!}}<!--
 +
-->{{{whitestats2}}}<noinclude><small> (try to avoid using this. it's provided only for compatibility reasons)</small></noinclude>
 
|}}
 
|}}
 +
<!--
  
|-
+
 
 +
durability row.
 +
-->|-
 
{{#if:<noinclude>string</noinclude>{{{durability|}}}
 
{{#if:<noinclude>string</noinclude>{{{durability|}}}
|{{!}} style="color:white;" colspan="2" title="Durability and its type" {{!}}Durability: {{{durability|item's durability and its type (optional)}}}
+
|{{!}} style="color:white;" colspan="2" title="Durability and its type" {{!}}<!--
 +
-->Durability: {{{durability}}}
 
|}}
 
|}}
 +
<!--
 +
  
|-
+
base trading value row.
 +
-->|-
 
{{#switch:{{{type}}} <!-- switch-if to check if the item is a plot item with value omitted. -->
 
{{#switch:{{{type}}} <!-- switch-if to check if the item is a plot item with value omitted. -->
 
   |Plot|Misc.|Misc|Key={{#if:<noinclude>string</noinclude>{{{value|}}}
 
   |Plot|Misc.|Misc|Key={{#if:<noinclude>string</noinclude>{{{value|}}}
     |{{!}} style="color:yellow;" colspan="2" title="Base trading value" {{!}}Value: {{{value|(item's value)}}}
+
     |{{!}} style="color:yellow;" colspan="2" title="Base trading value" {{!}}Value: {{{value}}}
 
     |{{!}} style="color:yellow;" colspan="2" title="Plot items cannot be sold" {{!}}Cannot be sold.}}
 
     |{{!}} style="color:yellow;" colspan="2" title="Plot items cannot be sold" {{!}}Cannot be sold.}}
 
   |#default={{#if:<noinclude>string</noinclude>{{{value|}}}
 
   |#default={{#if:<noinclude>string</noinclude>{{{value|}}}
     |{{!}} style="color:yellow;" colspan="2" title="Base trading value" {{!}}Value: {{{value|(item's value)}}}
+
     |{{!}} style="color:yellow;" colspan="2" title="Base trading value" {{!}}Value: {{{value}}}
 
     |}}
 
     |}}
 
}}
 
}}
 +
<!-- blueprint crafting page start -->
 +
{{#if:<noinclude>string</noinclude>{{{component1|}}}
 +
|&#8203;
 +
<hr style="background-color:#AE5700; height:2px;"><!--
 +
 +
COMPONENT TABLE STARTS HERE.
 +
CONTAINS NESTED IFS WITHOUT ANY INDENTATION,
 +
BECAUSE MEDIAWIKI MARKUP HATES WHITESPACES
 +
-->
 +
 +
{{(}}{{!}} width="100%" cellspacing="10" style="background-color:#000000; color:#ffffff;"
 +
{{!}}-
 +
{{!}} colspan="3" title="Crafting recipe description" {{!}}{{{description2}}}
 +
 +
{{!}}- align="center" valign="middle"
 +
{{!}} width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" title="First component" {{!}}<!--
 +
-->'''{{{component1}}}'''
 +
<!--
 +
 +
 +
box for 2nd component
 +
-->{{#if:<noinclude>string</noinclude>{{{component2|}}}
 +
|{{!}} width="34%" style="padding:15px; border:2px solid #808080; border-radius:1em;" title="Second component" {{!}}<!--
 +
-->'''{{{component2}}}'''
 +
<!--
 +
 +
new row if there are 4 components
 +
-->{{#if:<noinclude>string</noinclude>{{{component4|}}}
 +
|{{!}}- align="center" valign="top"
 +
|}}
 +
<!--
 +
 +
 +
box for 3rd component
 +
-->{{#if:<noinclude>string</noinclude>{{{component3|}}}
 +
|{{!}} width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" title="Third component" {{!}}<!--
 +
-->'''{{{component3}}}'''
 +
<!--
 +
 +
 +
box for 4th component
 +
-->{{#if:<noinclude>string</noinclude>{{{component4|}}}
 +
|{{!}} width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" title="Fourth component" {{!}}<!--
 +
-->'''{{{component4}}}'''
 +
|}} <!-- close if component4 -->
 +
|}} <!-- close if component3 -->
 +
|}} <!-- close if component2 -->
 +
{{!}}{{)}} <!-- close mandatory component table -->
 +
 +
{{(}}{{!}} width="100%" cellspacing="10" style="background-color:#000000; color:#ffffff;"
 +
{{!}}- align="center" valign="top"
 +
<!--
 +
 +
 +
optional component 1
 +
-->{{#if:<noinclude>string</noinclude>{{{optional1|}}}
 +
|{{!}} width="33%" style="padding:15px; border:2px dashed #808080; border-radius:1em;" title="First optional component" {{!}}<!--
 +
-->'''{{{optional1}}}'''
 +
<div style="background-color:#000000; text-align:left;"><font size="1" color="gray">Optional.
 +
<!--
 +
 +
optional difficulty mod 1
 +
-->{{#if:<noinclude>string</noinclude>{{{diffmod1|}}}
 +
  |<br>Composition difficulty. Using this slot will also increase the total skill requirements by <font color="white" title="Difficulty modifier">{{{diffmod1}}}</font> of the occupying item's requirements.
 +
  |}}</font></div>
 +
<!--
 +
 +
 +
optional component 2
 +
-->{{#if:<noinclude>string</noinclude>{{{optional2|}}}
 +
|{{!}} width="34%" style="padding:15px; border:2px dashed #808080; border-radius:1em;" title="Second optional component" {{!}}<!--
 +
-->'''{{{optional2}}}'''
 +
<div style="background-color:#000000; text-align:left;"><font size="1" color="gray">Optional.
 +
<!--
 +
 +
optional difficulty mod 2
 +
-->{{#if:<noinclude>string</noinclude>{{{diffmod2|}}}
 +
  |<br>Composition difficulty. Using this slot will also increase the total skill requirements by <!--
 +
--><font color="white" title="Difficulty modifier">{{{diffmod2}}}</font> of the occupying item's requirements.
 +
  |}}</font></div>
 +
<!--
 +
 +
 +
optional component 3
 +
-->{{#if:<noinclude>string</noinclude>{{{optional3|}}}
 +
|{{!}} width="33%" style="padding:15px; border:2px dashed #808080; border-radius:1em;"  title="Third optional component" {{!}}<!--
 +
-->'''{{{optional3}}}'''
 +
<div style="background-color:#000000; text-align:left;"><font size="1" color="gray">Optional.
 +
<!--
 +
 +
optional difficulty mod 3
 +
-->{{#if:<noinclude>string</noinclude>{{{diffmod3|}}}
 +
  |<br>Composition difficulty. Using this slot will also increase the total skill requirements by <!--
 +
--><font color="white" title="Difficulty modifier">{{{diffmod3}}}</font> of the occupying item's requirements.
 +
  |}}</font></div>
 +
|}} <!-- close if optional component3 -->
 +
|}} <!-- close if optional component2 -->
 +
|}} <!-- close if optional component1 -->
 +
{{!}}{{)}}<!-- close optional component table -->
 +
|}} <!-- close blueprint crafting page #IF -->
 
|}{{#if:{{{example|}}}|<includeonly>
 
|}{{#if:{{{example|}}}|<includeonly>
 
[[Category:Items with example stats]]</includeonly>
 
[[Category:Items with example stats]]</includeonly>
 
|}}<noinclude>
 
|}}<noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>

Revision as of 16:01, 15 August 2013

This is an example of Infobox item.
Its actual stats depend on components used and their quality.

Misc icon.png
{{{name}}}
{{{type}}}
{{{description}}}
Quality: {{{quality}}}
Required crafting skills:
{{{skillsreq}}}
Damage: {{{damage}}}
Impact Speed: {{{impactspeed}}}
Action Points: {{{ap}}}
Range: {{{range}}}
Precision: {{{precision)}}}
Burst precision: {{{burstprec.}}}
Close quarters precision: {{{cqprec.}}}
Move and shoot precision: {{{moveprec.}}}
Critical chance: {{{critchance}}}
Resistances:
{{{resistances}}}
Encumbrance: {{{encumbrance}}}
{{{whitestats}}} (try to avoid using this. it's provided only for compatibility reasons)
{{{greenstats}}} (uses, equip bonuses and all the other stuff written in green)
Minimal strength: {{{minstr}}}
Minimal weapon skill: {{{minskill)}}}
Ammo type: {{{ammotype}}}
Magazine capacity: {{{magcap}}}
Energy usage per shot: {{{energy/shot}}}
Energy: {{{energy}}}
{{{whitestats2}}} (try to avoid using this. it's provided only for compatibility reasons)
Durability: {{{durability}}}
Value: {{{value}}}


{{{description2}}}
{{{component1}}} {{{component2}}}
{{{component3}}} {{{component4}}}
{{{optional1}}}
Optional.
Composition difficulty. Using this slot will also increase the total skill requirements by {{{diffmod1}}} of the occupying item's requirements.
{{{optional2}}}
Optional.
Composition difficulty. Using this slot will also increase the total skill requirements by {{{diffmod2}}} of the occupying item's requirements.
{{{optional3}}}
Optional.
Composition difficulty. Using this slot will also increase the total skill requirements by {{{diffmod3}}} of the occupying item's requirements.


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_item/doc to view this documentation. (edit) (How does this work?)

Description

This is the infobox template for all items.

Old unused aliases: Template:Infobox ammo, Template:Infobox armor, Template:Infobox blueprint, Template:Infobox component, Template:Infobox weapon

Syntax

To use this template:

  1. copy the following code
  2. fill in the appropriate fields
  3. remove all unused lines
{{item infobox
| itemquality  = [accepted values: low, normal, high, rarity, unique, artifact]
| image        = [should match name with .png suffix]
| name         = 
| type         = 
| description  = 
| trapstats    = [skill req and detection difficulty for traps]
| capabilities = [Use / On Hit / other item capabilities]
| requirements = [new 1.1 requirements listing, each req on a new line beginning with :*]
| incurred     = [incurred stats written in orange]
| onequip      = [bonuses/penalties on equip]
| ammouses     = [ammo capabilities, for either ammo or loaded weapons]
| energy       = [battery capacity]
| durability   = [durability and its type]
| disassembly  = [remove this if item is not disassemble-able]
| limitations  = [general restrictions like cant be used in combat etc]
| weight       = 
| value        = [base trading value, NOT value affected by trading multiplier]
|
|armor attributes:
| res-mech     = 
| res-heat     = 
| res-cold     = 
| res-elec     = 
| res-acid     = 
| res-ener     = 
| res-bio      = 
| encumbrance  = [aka armor penalty]
|
|blueprint attributes:
| description2 = [description on the crafting recipe]
| component1   = [mandatory first component]
| component2   = 
| component3   = 
| component4   = 
| component5   = 
| optional1    = 
| diffmod1     = 
| optional2    = 
| diffmod2     = 
| optional3    = 
| diffmod3     = 
|
|component attributes:
| quality      = 
| skillsreq    = [multiple lines, each intended with ":"]
|
|shield emitter attributes:
| capacity     = 
| conversion   = 
| dissipation  = 
| shield-vlow  = 
| shield-low   = 
| shield-med   = 
| shield-high  = 
| shield-vhigh = 
|
|weapon attributes:
| damage       = 
| impactspeed  = [accepted values: Very Low, Low, Medium, High, Very High]
| ap           = 
| spread       = 
| range        = 
| precision    = 
| cqprec.      = 
| moveprec.    = 
| burstprec.   = 
| extraburst   = 
| critchance   = 
| critbonus    = 
| ammotype     = 
| magcap       = 
| reloadcost   =
| energy/shot  = 
| energy       = 
|
|vehicle part attributes:
| partsize     = 
| power        = 
| consumption  = 
| stability    = 
|
|meta:
| datafile     = [the item definition file]
}}

Samples


Blueprint.png
Blueprint: Sniper Rifle
Blueprint
Contain instructions on how to create a sniper rifle.
Value: 2000


Sniper rifles can be created from frame, barrel and scope parts. The type and quality of the frame will determine the rifle's overall damage potential, while the barrel will dictate the payload. Scope will influence the rifle's precision, critical hit chance and other qualities.

A number of optional components can also be added to further enhance the weapon.
Frame Barrel Scope
Sniper Rifle Enhancement
Optional.
Composition difficulty. Using this slot will also increase the total skill requirements by 15% of the occupying item's requirements.
Sniper Rifle Enhancement
Optional.
Composition difficulty. Using this slot will also increase the total skill requirements by 15% of the occupying item's requirements.
{{infobox item
| itemquality  = high
| image        = Blueprint: Sniper Rifle.png
| name         = Blueprint: Sniper Rifle
| type         = Blueprint
| description  = Contain instructions on how to create a sniper rifle.
| capabilities = Use: Download blueprint into your wristpad.
| weight       = 0.05
| value        = 2000
| description2 = Sniper rifles can be created from frame, barrel and scope parts. The type and quality of the frame will determine the rifle's overall damage potential, while the barrel will dictate the payload. Scope will influence the rifle's precision, critical hit chance and other qualities.<br/><br/>A number of optional components can also be added to further enhance the weapon.
| component1   = Frame
| component2   = Barrel
| component3   = Scope
| optional1    = Sniper Rifle Enhancement
| diffmod1     = 15%
| optional2    = Sniper Rifle Enhancement
| diffmod2     = 15%
}}


Blueprint.png
Blueprint: Health Hypo
Blueprint
Contains instructions on how to create a health hypo.
Value: 800


Health Hypo can be created by mixing healthy animal blood with insectoid saliva and preserving the mixture with anticoagulant.
Blood (x3) Insectoid Saliva
Anticoagulant Syringe (x2)
{{infobox item
| itemquality  = high
| image        = Blueprint: Health Hypo.png
| name         = Blueprint: Health Hypo
| type         = Blueprint
| description  = Contains instructions on how to create a health hypo.
| capabilities = Use: Download blueprint into your wristpad.
| weight       = 0.05
| value        = 800
| description2 = Health Hypo can be created by mixing healthy animal blood with insectoid saliva and preserving the mixture with anticoagulant.
| component1   = Blood (x3)
| component2   = Insectoid Saliva
| component3   = Anticoagulant
| component4   = Syringe (x2)
}}


Health Hypo.png
Health Hypo
Medicine
A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
Value: 120
{{infobox item
| itemquality  = normal
| image        = Health Hypo.png
| name         = Health Hypo
| type         = Medicine
| description  = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
| capabilities = Use: Instantly restores 80 health points.<br/>(AP: 10, Cooldown: 6 turns)
| weight       = 0.10
| value        = 120
}}


Steel Crowbar.png
Steel Crowbar
Melee Weapon
This handy tool can also be used as a weapon in a pinch.
Damage: 5-13 (Mechanical)
Impact Speed: Very Low
Action Points: 18 AP
Range: Melee
Critical chance: 10%
Value: 50
{{infobox item
| itemquality  = normal
| image        = Steel Crowbar.png
| name         = Steel Crowbar
| type         = Melee Weapon
| description  = This handy tool can also be used as a weapon in a pinch.
| damage       = 5-13 (Mechanical)
| impactspeed  = Very Low
| ap           = 18 AP
| range        = Melee
| critchance   = 10%
| critbonus    = 100%
| capabilities = Damage increased by 3% for every point in strength above 6.<br><br>Use: Forces open a ventilation shaft. It won't be able to close afterwards.<br>(AP: 15)
| weight       = 2.50
| value        = 50
}}


9mm JHP Round.png
9mm JHP Round
Ammo
This is a 9mm jacketed hollow point round.
Value: 18
{{Infobox ammo
| itemquality = high
| image       = 9mm JHP Round.png
| name        = 9mm JHP Round
| type        = Ammo
| description = This is a 9mm jacketed hollow point round.
| incurred    = - Incurs 150% of mechanical damage resistance and threshold, but the damage that penetrates the armor is increased by 40% against organic targets.
| ammouses    = Use: Reload a weapon with 9mm JHP rounds.<br>(AP: 15)<br><br>Use: Reload the current weapon with 9mm JHP rounds.<br>(AP: 15)<br><br>Use: Loads a single 9mm JHP round into a weapon. Can only be performed out of combat.<br>(AP: 15)<br><br>Use: Loads a single 9mm JHP round into the current weapon. Can only be performed out of combat.<br>(AP: 15)
| weight      = 0.04
| value       = 18
| datafile    = Ammo/Caliber_9_JHP.item
}}


Steel Armor.png
Galvanic Steel Armor
Armor Suit
This is a suit of steel armor. Below the protective plates is a vest that provides moderate protection against electrical attacks.
Encumbrance: 70%
Minimal strength: 8
Durability: 505 / 505 (mechanical)
Value: 10758
{{infobox item
| itemquality = normal
| image       = Galvanic Steel Armor.png
| name        = Galvanic Steel Armor
| type        = Armor Suit
| description = This is a suit of steel armor. Below the protective plates is a vest that provides moderate protection against electrical attacks.
| res-mech    = 51% / 15
| res-heat    = 5
| res-elec    = 16% / 3
| res-acid    = 5
| res-ener    = 38% / 10
| encumbrance = 70%
| minstr      = 8
| durability  = 505 / 505 (mechanical)
| weight      = 20.00
| value       = 10758
}}


Mutated Dog Leather.png
Mutated Dog Leather
Component
This skin can be turned into an acid resistant leather armor.
Quality range: 34 - 62
Required crafting skills (as percentage of quality):
Tailoring 80%
Chemistry 24%
Value: 75 + 8 * quality
{{infobox item
| itemquality = high
| image       = Mutated Dog Leather.png
| name        = Mutated Dog Leather
| type        = Component
| description = This skin can be turned into an acid resistant leather armor.
| quality     = 34 - 62
| skillsreq   =
:Tailoring 80%
:Chemistry 24%
| weight      = 5.00
| value       = 75 + 8 * quality
}}


Keycard blue.png
Private Quarters Key Card
Key
Unlocks your private quarters.
Cannot be sold.
{{infobox item
| itemquality = normal
| image       = Private Quarters Key Card.png
| name        = Private Quarters Key Card
| type        = Key
| description = Unlocks your private quarters.
}}