Difference between revisions of "Template:Infobox.v2"

From Prison Architect Wiki
Jump to navigation Jump to search
m
m
 
Line 28: Line 28:
 
| #default = Walk Speed
 
| #default = Walk Speed
 
}}:'''</td><td style="background: #EAEAEA; padding: 2px 12px;">
 
}}:'''</td><td style="background: #EAEAEA; padding: 2px 12px;">
${{{walkspeed}}}</td></tr> | }}
+
{{{walkspeed}}}</td></tr> | }}
 
{{#if: {{{location|}}} | <td style="background: #FFF; padding: 2px 12px; text-align: left;">'''{{#switch: {{{lang}}}  
 
{{#if: {{{location|}}} | <td style="background: #FFF; padding: 2px 12px; text-align: left;">'''{{#switch: {{{lang}}}  
 
| en = Location
 
| en = Location

Latest revision as of 16:18, 29 June 2020


  Leather Chair
PW DLC.png
Date of the last article update. Content based on The Sneezer
2/2020 | The Sneezer
Cost: $400
Size: 1x1
Toughness 10 HP
Used in:
  • Psychiatrist Office
Other Information:
DLC Content

About

Infobox.v2 is a new version of the old infobox that is used on the English version of the wiki as a replacement for the old infobox. The new infobox is very similar however it supports position alignment to save space and some other things like contentBasedOnVersion to display what version the infobox and article is based on.

Infobox V2 can be used for objects, staff and utilities.

Most of the values/options are optional and do not have to be included or specified.

Usage

All supported options:

lang = Add if this is a non-english translation. Available: en, de, fr, it, es, ru and hu. Usage: lang = de, lang = fr etc. name = REQUIRED - name of the object, room or whatever the infobox presents. image = Image of presented item or staff (preferably, taken from the game files). imageWidth = Used to resize too big images, defines the width of image. Usage example: 20px. icon = Can be used for DLC icon. • Available: Check Template:Icons. • It supports any image. If you decide to use any for some reason, please make sure it's size it's set to not more than 48px. Example: [[File:Placeholder.png|48px]] price = Price of the presented item or staff. size = Size of the presented item or staff. How big space (tiles) it occupies, in format like this: WIDTHxHEIGHT (e.g. 5x2). toughness = durability or health points of the presented item or staff. usedin = Outdoor / Indoor / Anywhere / Room name other = Additional, short information such as "DLC content", "Can't be purchased" etc. position = Defines infobox location on the page. Can be set only to unset, left or right. Default is right. contentBasedOnVersion = Version number or its name the content of infobox and article is based on. Not required. Example: Alpha 32, The Sneezer. articleUpdatedOn = Month and year of the last article content update, for example: 5/2019. Leave empty to auto-fill and use the last edit date. Does not show up if contentBasedOnVersion is empty.

type = Include it for utility object or staff. Administration / Staff / Electrical / Water Supply. Not required. wage = Used if presenting a staff member. How much staff is paid daily? Example: 100, 500.

requires = Mainly when you present a room type in the infobox. Adds "Requirement" section, where the objects that are required for the room are listed (e.g. TV, Toilet, Bed) but also Indoors, Outdoors. Can be used to list the research requirements.

improve = For room type infobox, used to list objects that can be installed to improve room grade. usedby = For room type infobox, used to list entities that use the room.

contraband = For room type infobox, used to list what contraband can be stolen from the room.


Empty versions to copy:

OBJECT STAFF UTILITY
{{Infobox.v2
|name = 
|image = 
|size = 
|price = 
|toughness = 
|usedin = 
|other = 
|contentBasedOnVersion = 
}}
{{Infobox.v2
|name = 
|image = 
|type = 
|price = 
|wage = 
|toughness = 
|other = 
|contentBasedOnVersion = 
}}
{{Infobox.v2
|name = 
|type = 
|image = 
|price = 
|size = 
|toughness = 
|other = 
|contentBasedOnVersion = 
}}

Currently, the Infobox.v2 can be seen on all English Object, Staff and Utility pages. Below are some examples ready for use that you can just copy and paste when creating or updating an article:

Examples

OBJECT STAFF TRANSLATED
{{Infobox.v2
|name = Metal Detector
|image = MetalDetector.png
|size = 1x1
|price = 1,000
|toughness = 1
|usedin = * Anywhere
|other = * Requires [[Power Station|Electricity]] to operate.
}}
{{Infobox.v2
|name = Workman
|image = workman_animated.gif
|type = Staff
|price = 500
|wage = 100
|toughness = 5
|other = * nothing required - always available
|contentBasedOnVersion = The Sneezer
}}
{{Infobox.v2
|lang = de
|image = Medical bed.png
|name = Krankenbett
|size = 2x2
|price = 500
|toughness = 30
|usedin =
* [[Krankenstation]]
|other =
* Dieses Objekt muss unter [[Bürokratie]] erforscht werden, bevor es gekauft werden kann. <br> ''(Gesundheit)''
}}
  Metal Detector
Cost: $1,000
Size: 1x1
Toughness 1 HP
Used in:
  • Anywhere
Other Information:
  Workman
Date of the last article update. Content based on The Sneezer
6/2020 | The Sneezer
Type: Staff
Cost: $500
Daily Wage: $100
Toughness 5 HP
Other Information:
  • nothing required - always available
  Krankenbett
Kosten: $500
Größe: 2x2
Belastbarkeit 30 HP
Wird eingesetzt in:
Weitere Informationen:
  • Dieses Objekt muss unter Bürokratie erforscht werden, bevor es gekauft werden kann.
    (Gesundheit)
OBJECT with DLC icon UTILITY CUSTOM
{{Infobox.v2
|name = Leather Sofa
|image = Leather Sofa.png
|icon = {{icon|PW DLC|48px|Psych Ward: Warden's Edition}}
|price = 600
|size = 1x2
|toughness = 10
|usedin = * Psychiatrist Office
|other = DLC Content
|position = right
|contentBasedOnVersion = The Sneezer
|articleUpdatedOn = 2/2020
}}
{{Infobox.v2
|name = Capacitor
|type = Electrical
|image = Capacitor.png
|price = 1,000
|size = 1x1
|toughness = 
|other = 
|contentBasedOnVersion = The Clink
}}
{{Infobox.v2
|name = Door
|image = Door_v2.png
|size = 1x1
|price = 50
|toughness = 20
}}
  Leather Sofa
PW DLC.png
Date of the last article update. Content based on The Sneezer
2/2020 | The Sneezer
Cost: $600
Size: 1x2
Toughness 10 HP
Used in:
  • Psychiatrist Office
Other Information:
DLC Content
  Capacitor
Date of the last article update. Content based on The Clink
6/2020 | The Clink
Type: Electrical
Cost: $1,000
Size: 1x1
Other Information:
  • None provided
  Door
Cost: $50
Size: 1x1
Toughness 20 HP
Other Information:
  • None provided