The Escapists Wiki
m (Protected "Template:TE2 item infobox" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
No edit summary
(3 intermediate revisions by the same user not shown)
Line 27: Line 27:
 
{{#if: {{{damage|}}}|
 
{{#if: {{{damage|}}}|
 
{{!}} '''Damage'''
 
{{!}} '''Damage'''
  +
{{!}} <div style="float:right">
{{!}} {{#ifeq:{{{damage}}}|1|Low|{{#ifeq:{{{damage}}}|2|Medium|{{#ifeq:{{{damage}}}|3|High|{{#ifeq:{{{damage}}}|4|Maximum|}}}}}}}}
 
  +
{{#switch:{{{damage}}}
  +
|1 = <span style="color:#66cc00">Low</span>
  +
|2 = <span style="color:#cccc00">Medium</span>
  +
|3 = <span style="color:#cc6600">High</span>
  +
|4 = <span style="color:#cc0000">Maximum</span>
  +
|#default = [[Template:TE2 item infobox|Unspecified]]}}
  +
</div>
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{speed|}}}|
 
{{#if: {{{speed|}}}|
 
{{!}} '''Speed'''
 
{{!}} '''Speed'''
  +
{{!}} <div style="float:right">
{{!}} {{#ifeq:{{{speed}}}|1|Low|{{#ifeq:{{{speed}}}|2|Medium|{{#ifeq:{{{speed}}}|3|High|{{#ifeq:{{{speed}}}|4|Maximum|}}}}}}}}
 
  +
{{#switch:{{{speed}}}
  +
|1 = <span style="color:#66cc00">Low</span>
  +
|2 = <span style="color:#cccc00">Medium</span>
  +
|3 = <span style="color:#cc6600">High</span>
  +
|4 = <span style="color:#cc0000">Maximum</span>
  +
|#default = [[Template:TE2 item infobox|Unspecified]]}}
  +
</div>
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{range|}}}|
 
{{#if: {{{range|}}}|
 
{{!}} '''Range'''
 
{{!}} '''Range'''
  +
{{!}} <div style="float:right">
{{!}} {{#ifeq:{{{range}}}|1|Low|{{#ifeq:{{{range}}}|2|Medium|{{#ifeq:{{{range}}}|3|High|{{#ifeq:{{{range}}}|4|Maximum|}}}}}}}}
 
  +
{{#switch:{{{range}}}
  +
|1 = <span style="color:#66cc00">Low</span>
  +
|2 = <span style="color:#cccc00">Medium</span>
  +
|3 = <span style="color:#cc6600">High</span>
  +
|4 = <span style="color:#cc0000">Maximum</span>
  +
|#default = [[Template:TE2 item infobox|Unspecified]]}}
  +
</div>
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{digging|}}}|
 
{{#if: {{{digging|}}}|
 
{{!}} '''Digging'''
 
{{!}} '''Digging'''
{{!}} {{{digging|}}}% per use}}
+
{{!}} <div style="float:right">{{{digging|}}}% per use</div>}}
 
|-
 
|-
 
{{#if: {{{cutting|}}}|
 
{{#if: {{{cutting|}}}|
 
{{!}} '''Cutting'''
 
{{!}} '''Cutting'''
{{!}} {{{cutting|}}}% per use}}
+
{{!}} <div style="float:right">{{{cutting|}}}% per use</div>}}
 
|-
 
|-
 
{{#if: {{{chipping|}}}|
 
{{#if: {{{chipping|}}}|
 
{{!}} '''Chipping'''
 
{{!}} '''Chipping'''
{{!}} {{{chipping|}}}% per use}}
+
{{!}} <div style="float:right">{{{chipping|}}}% per use</div>}}
 
|-
 
|-
 
{{#if: {{{unscrewing|}}}|
 
{{#if: {{{unscrewing|}}}|
 
{{!}} '''Unscrewing'''
 
{{!}} '''Unscrewing'''
{{!}} {{{unscrewing|}}}% per use}}
+
{{!}} <div style="float:right">{{{unscrewing|}}}% per use</div>}}
 
|}
 
|}
 
<includeonly><!--
 
<includeonly><!--
Line 67: Line 88:
 
-->{{#if: {{{unscrewing|}}} | [[category:Unscrewing Tools]]}}<!--
 
-->{{#if: {{{unscrewing|}}} | [[category:Unscrewing Tools]]}}<!--
 
-->[[category:Items]]<!--
 
-->[[category:Items]]<!--
  +
-->[[category:Items (The Escapists 2)]]<!--
 
--></includeonly>
 
--></includeonly>
   

Revision as of 17:44, 21 September 2017

TE2 item infobox
The Escapists 2 Item
File:TE2 item infobox.png
Details
Won't be confiscated


Usage:

  • All parameters are optional. If the attributes of an item are unknown, it's advisable to include the template with no parameters, like so: {{TE2 item infobox}}
  • When a value of true is specified for the contraband, consumable and durability parameters, their respective fields will display in the infobox. If a field should not display for some field, the entire line containing the parameter can be removed.

Example

{{TE2 item infobox
| contraband = true
| consumable = true
| durability = true
| outfit = true
| flavor = This text will display underneath the item image.
| uses = 1
| damage = 1 - Low, 2 - Medium, 3 - High, 4 - Maximum
| speed = 1 - Low, 2 - Medium, 3 - High, 4 - Maximum
| range = 1 - Low, 2 - Medium, 3 - High, 4 - Maximum
| digging = 1% per use
| cutting = 1% per use
| chipping = 1% per use
| unscrewing = 1% per use
}}