模板:Infobox.v2
Leather Chair | |
Cost: | $400 |
Size: | 1x1 |
Toughness | 10 HP |
Used in: |
|
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.
- For items infobox, please check Template:Infobox.v2 Item.
- For rooms infobox, please check Template:Infobox.v2 Room.
- For gameplay infobox, please check Template:Infobox.v2 Gameplay.
- For menu infobox, please check Template:Infobox.v2 Menu.
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.
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)'' }} | ||||||||||||||||||||||||||||||||||||||||||
|
|
|
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 }} | ||||||||||||||||||||||||||||||||||||||
|
|
|