Difference between revisions of "Template:Infobox item/doc"

From Underrail Wiki
Jump to navigation Jump to search
(template documentation update)
Line 20: Line 20:
 
| itemquality  = [accepted values: low, normal, high, rarity, artifact]
 
| itemquality  = [accepted values: low, normal, high, rarity, artifact]
 
| name        =  
 
| name        =  
| type        = [item type (not required for ammo)]
+
| type        =  
 
| description  =  
 
| description  =  
 
| whitestats  = [any stats written in white that the infobox doesn't cover]
 
| whitestats  = [any stats written in white that the infobox doesn't cover]
 
| greenstats  = [uses, equip effects and other stats written in green]
 
| greenstats  = [uses, equip effects and other stats written in green]
 
| orangestats  = [incurred stats written in orange]
 
| orangestats  = [incurred stats written in orange]
| energy      =  
+
| energy      = [battery capacity]
 
| whitestats2  = [any stats written in white, below the green section]
 
| whitestats2  = [any stats written in white, below the green section]
 
| weight      =  
 
| weight      =  
Line 35: Line 35:
 
|
 
|
 
|armor attributes:
 
|armor attributes:
| resistances  = [multiple lines, each intended with ":"]
+
| res-mech    =
 +
| res-heat    =
 +
| res-cold    =
 +
| res-elec    =
 +
| res-acid    =
 +
| res-ener    =
 +
| res-bio      =  
 
| encumbrance  =  
 
| encumbrance  =  
 
| minstr      =
 
| minstr      =
Line 54: Line 60:
 
|component attributes:
 
|component attributes:
 
| quality      =  
 
| quality      =  
| skillsreq    = [multiple lines, intended with ":"]
+
| skillsreq    = [multiple lines, each intended with ":"]
 
|
 
|
 
|shield emitter attributes:
 
|shield emitter attributes:
Line 82: Line 88:
 
| energy/shot  =  
 
| energy/shot  =  
 
| energy      =  
 
| energy      =  
 +
|
 +
|meta:
 +
| datafile    = [the item definition or generator file]
 
}}
 
}}
 
</pre>
 
</pre>
  
 
== Samples ==
 
== Samples ==
Click the expand link for visual examples. See source for how they're made.
+
<div class="mw-collapsible">
 
 
<div class="mw-collapsible mw-collapsed">
 
 
{{clear}}
 
{{clear}}
  
{{infobox blueprint
+
{{infobox item
 
| image        = items_devices_blueprint.png
 
| image        = items_devices_blueprint.png
 
| itemquality  = high
 
| itemquality  = high
Line 98: Line 105:
 
| description  = Contain instructions on how to create a sniper rifle.
 
| description  = Contain instructions on how to create a sniper rifle.
 
| greenstats  = Use: Download blueprint into your wristpad.
 
| greenstats  = Use: Download blueprint into your wristpad.
| weight      = 0,05
+
| weight      = 0.05
 
| value        = 2000
 
| 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.
+
| 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
A number of optional components can also be added to further enhance the weapon.
+
| component3  = Scope
 +
| optional1    = Sniper Rifle Enhancement
 +
| diffmod1    = 15%
 +
| optional2    = Sniper Rifle Enhancement
 +
| diffmod2    = 15%
 +
}}
 +
<pre>
 +
{{infobox item
 +
| image        = items_devices_blueprint.png
 +
| itemquality  = high
 +
| name        = Blueprint: Sniper Rifle
 +
| type        = Blueprint
 +
| description  = Contain instructions on how to create a sniper rifle.
 +
| greenstats  = 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
 
| component1  = Frame
 
| component2  = Barrel
 
| component2  = Barrel
Line 112: Line 135:
 
| diffmod2    = 15%
 
| diffmod2    = 15%
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
+
{{infobox item
 
+
| image        = items_devices_blueprint.png
{{infobox blueprint
+
| itemquality  = high
 +
| name        = Blueprint: Health Hypo
 +
| type        = Blueprint
 +
| description  = Contains instructions on how to create a health hypo.
 +
| greenstats  = 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)
 +
}}
 +
<pre>
 +
{{infobox item
 
| image        = items_devices_blueprint.png
 
| image        = items_devices_blueprint.png
 
| itemquality  = high
 
| itemquality  = high
Line 122: Line 160:
 
| description  = Contains instructions on how to create a health hypo.
 
| description  = Contains instructions on how to create a health hypo.
 
| greenstats  = Use: Download blueprint into your wristpad.
 
| greenstats  = Use: Download blueprint into your wristpad.
| weight      = 0,05
+
| weight      = 0.05
 
| value        = 800
 
| value        = 800
 
| description2 = Health Hypo can be created by mixing healthy animal blood with insectoid saliva and preserving the mixture with anticoagulant.
 
| description2 = Health Hypo can be created by mixing healthy animal blood with insectoid saliva and preserving the mixture with anticoagulant.
Line 130: Line 168:
 
| component4  = Syringe (x2)
 
| component4  = Syringe (x2)
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
 
 
 
{{infobox item
 
{{infobox item
 
| image      = items_medicine_health_hypo.png
 
| image      = items_medicine_health_hypo.png
Line 139: Line 176:
 
| type        = Medicine
 
| type        = Medicine
 
| description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
 
| description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
| greenstats  = Use: Instantly restores 80 health points.<br>(AP: 10, Cooldown: 6 turns)
+
| greenstats  = Use: Instantly restores 80 health points.<br/>(AP: 10, Cooldown: 6 turns)
| weight      = 0,10
+
| weight      = 0.10
 +
| value      = 120
 +
}}
 +
<pre>
 +
{{infobox item
 +
| image      = items_medicine_health_hypo.png
 +
| itemquality = normal
 +
| 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.
 +
| greenstats  = Use: Instantly restores 80 health points.<br/>(AP: 10, Cooldown: 6 turns)
 +
| weight      = 0.10
 
| value      = 120
 
| value      = 120
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
+
{{infobox item
 
+
| image      = Crowbar icon.png
{{infobox weapon
+
| itemquality = normal
 +
| 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%
 +
| greenstats  = 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
 +
}}
 +
<pre>
 +
{{infobox item
 
| image      = Crowbar icon.png
 
| image      = Crowbar icon.png
 
| itemquality = normal
 
| itemquality = normal
Line 157: Line 220:
 
| range      = Melee
 
| range      = Melee
 
| critchance  = 10%
 
| critchance  = 10%
| greenstats  = Damage increased by 3% for every point in strength above 6.
+
| greenstats  = 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)
 
 
Use: Forces open a ventilation shaft. It won't be able to close afterwards.<br>(AP: 15)
 
 
| weight      = 2,50
 
| weight      = 2,50
 
| value      = 50
 
| value      = 50
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
+
{{Infobox item
 
+
| caliber = 9mm
{{Infobox ammo
+
| type    = JHP
 +
| weight  = 0.03
 +
| value  = 18
 +
}}
 +
<pre>
 +
{{Infobox item
 
| caliber = 9mm
 
| caliber = 9mm
 
| type    = JHP
 
| type    = JHP
| weight  = 0,03
+
| weight  = 0.03
 
| value  = 18
 
| value  = 18
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
+
{{infobox item
 
+
| example    = yes
{{infobox armor
+
| image      = steel armor.png
 +
| itemquality = normal
 +
| 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
 +
}}
 +
<pre>
 +
{{infobox item
 
| example    = yes
 
| example    = yes
 
| image      = steel armor.png
 
| image      = steel armor.png
Line 182: Line 267:
 
| type        = Armor Suit
 
| 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.
 
| description = This is a suit of steel armor. Below the protective plates is a vest that provides moderate protection against electrical attacks.
| resistances =
+
| res-mech    = 51% / 15
:Mechanical: 51% / 15
+
| res-heat    = 5
:{{color|orangered|Heat: 5}}
+
| res-elec    = 16% / 3
:{{color|yellow|Electricity: 16% / 3}}
+
| res-acid    = 5
:{{color|green|Acid: 5}}
+
| res-ener    = 38% / 10
:{{color|aqua|Energy: 38% / 10}}
 
 
| encumbrance = 70%
 
| encumbrance = 70%
 
| minstr      = 8
 
| minstr      = 8
 
| durability  = 505 / 505 (mechanical)
 
| durability  = 505 / 505 (mechanical)
| weight      = 20,00
+
| weight      = 20.00
 
| value      = 10758
 
| value      = 10758
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
+
{{infobox item
 
+
| image      = items_components_leather3.png
{{infobox component
+
| itemquality = high
 +
| name        = Mutated Dog Leather
 +
| type        = Component
 +
| description = This skin can be turned into an acid resistant leather armor.
 +
| quality    = 62
 +
| skillsreq  =
 +
:Tailoring 62
 +
:Chemistry 18
 +
| weight      = 5.00
 +
| value      = 1500
 +
}}
 +
<pre>
 +
{{infobox item
 
| image      = items_components_leather3.png
 
| image      = items_components_leather3.png
 
| itemquality = high
 
| itemquality = high
Line 207: Line 304:
 
:Tailoring 62
 
:Tailoring 62
 
:Chemistry 18
 
:Chemistry 18
| weight      = 5,00
+
| weight      = 5.00
 
| value      = 1500
 
| value      = 1500
 
}}
 
}}
 +
</pre>{{clear}}
  
{{clear}}
 
 
 
{{infobox item
 
{{infobox item
 
| image      = keycard_blue.png
 
| image      = keycard_blue.png
Line 220: Line 316:
 
| description = Unlocks your private quarters.
 
| description = Unlocks your private quarters.
 
}}
 
}}
 +
<pre>
 +
{{infobox item
 +
| image      = keycard_blue.png
 +
| itemquality = normal
 +
| name        = Private Quarters Key Card
 +
| type        = Key
 +
| description = Unlocks your private quarters.
 +
}}
 +
</pre>
 
</div>
 
</div>
 
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 10:27, 17 November 2014

Description

This is the infobox template for all items.

Aliases

Syntax

To use this template:

  1. copy the following code
  2. fill in the appropriate fields
  3. remove all unused lines
{{item infobox
| image        = [leave this field empty if there's no image yet]
| itemquality  = [accepted values: low, normal, high, rarity, artifact]
| name         = 
| type         = 
| description  = 
| whitestats   = [any stats written in white that the infobox doesn't cover]
| greenstats   = [uses, equip effects and other stats written in green]
| orangestats  = [incurred stats written in orange]
| energy       = [battery capacity]
| whitestats2  = [any stats written in white, below the green section]
| weight       = 
| value        = [base trading value, NOT value affected by trading multiplier]
|
|ammo attributes:
| caliber      = eg. "7.62mm"
| type         = Standard, JHP or W2C
|
|armor attributes:
| res-mech     = 
| res-heat     = 
| res-cold     = 
| res-elec     = 
| res-acid     = 
| res-ener     = 
| res-bio      = 
| encumbrance  = 
| minstr       =
|
|blueprint attributes:
| description2 = [description on the crafting recipe]
| component1   = [mandatory first component]
| component2   = 
| component3   = 
| component4   = 
| 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           = 
| range        = 
| precision    = 
| burstprec.   = 
| cqprec.      = 
| moveprec.    = 
| critchance   = 
| minstr       = 
| minskill     = 
| ammotype     = 
| magcap       = 
| energy/shot  = 
| energy       = 
|
|meta:
| datafile     = [the item definition or generator file]
}}

Samples

Blueprint.png
Blueprint: Sniper Rifle
Blueprint
Contain instructions on how to create a sniper rifle.
Weight: 0.05
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.
Using this slot will increase the total skill requirements by 15% of the occupying item's requirements.
Sniper Rifle Enhancement
Optional.
Using this slot will increase the total skill requirements by 15% of the occupying item's requirements.
{{infobox item
| image        = items_devices_blueprint.png
| itemquality  = high
| name         = Blueprint: Sniper Rifle
| type         = Blueprint
| description  = Contain instructions on how to create a sniper rifle.
| greenstats   = 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.
Weight: 0.05
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
| image        = items_devices_blueprint.png
| itemquality  = high
| name         = Blueprint: Health Hypo
| type         = Blueprint
| description  = Contains instructions on how to create a health hypo.
| greenstats   = 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.
Weight: 0.10
Value: 120
{{infobox item
| image       = items_medicine_health_hypo.png
| itemquality = normal
| 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.
| greenstats  = 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
Base action points: 18 AP
Range: Melee
Critical chance: 10%
Weight: 2,50
Value: 50
{{infobox item
| image       = Crowbar icon.png
| itemquality = normal
| 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%
| greenstats  = 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
}}
Misc icon.png
{{{name}}}
JHP
{{{description}}}
Weight: 0.03
Value: 18
{{Infobox item
| caliber = 9mm
| type    = JHP
| weight  = 0.03
| value   = 18
}}
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.
Resistances:
Mechanical: 51% / 15
Heat: 5
Electricity: 16% / 3
Acid: 5
Energy: 38% / 10
Minimal strength: 8
Armor penalty: 70%
Durability: 505 / 505 (mechanical)
Weight: 20.00
Value: 10758
{{infobox item
| example     = yes
| image       = steel armor.png
| itemquality = normal
| 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: 62 ?
Required crafting skills:
Tailoring 62
Chemistry 18
Weight: 5.00
Value: 1500
{{infobox item
| image       = items_components_leather3.png
| itemquality = high
| name        = Mutated Dog Leather
| type        = Component
| description = This skin can be turned into an acid resistant leather armor.
| quality     = 62
| skillsreq   =
:Tailoring 62
:Chemistry 18
| weight      = 5.00
| value       = 1500
}}
Keycard blue.png
Private Quarters Key Card
Key
Unlocks your private quarters.
Cannot be sold.
{{infobox item
| image       = keycard_blue.png
| itemquality = normal
| name        = Private Quarters Key Card
| type        = Key
| description = Unlocks your private quarters.
}}