模板:Infobox.v2 Room
Requirements: |
|
Improvements: |
|
Used by: |
|
None | |
Other Information: | |
|
About
Infobox.v2 Room 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.
- For infobox for objects and staff, check: Template:Infobox.v2
- For infobox for gameplay, check: Template:Infobox.v2 Gameplay
Usage
All supported options:
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: PW_DLC_small.png (Psych Ward DLC icon). • 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]] icon2 = Same as icon . Can be used to display a second icon. First can be a room icon and the second a DLC icon. 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 = Used to list objects that can be installed to improve room grade. usedby = Used to list entities that use the room. contraband = Used to list what contraband can be stolen from the room. 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.
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
Empty version to copy:
{{Infobox.v2 Room |lang = |name = |icon = |image = |imageWidth = |requires = |improve = |usedby = |contraband = |other = |contentBasedOnVersion = }}
ROOM Example 1 | ROOM Example 2 | ROOM Example 3 | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox.v2 Room |lang = en |name = Garbage |icon = Icon_96_garbage.png |image = Müllraum.jpg |imageWidth = 200px |requires = * Minimum size: 1x3 |improve = |usedby = * [[Workman]] * [[Cook]]s |contraband = |other = Automatically generated }} |
{{Infobox.v2 Room |lang = en |name = Psychiatrist Office |icon = PsychiatristOffice_icon.png |icon2 = PW_DLC_small.png |image = Psychiatrist Room.png |imageWidth = 160px |requires= * Minimum Size: 4x4 * Indoors * [[Office Desk]] |improve = Check [[#Upgrading|Upgrading]] section |usedby = * [[Prisoner]]s * [[Psychiatrist]] |contraband = [[Mobile Phone]], [[Booze]], [[Cigs]], [[Lighter]] |other = DLC Content }} |
{{Infobox.v2 Room |lang = en |name = Yard |image = Yard.png |imageWidth = 160px |requires = * Minimum Size: 5x5 * Secure |improve = * [[Bench]] * [[Phone Booth]] * [[Weights Bench]] |usedby = * [[Prisoner]]s |contentBasedOnVersion = The Sneezer }} | ||||||||||||||||||||||||||||||||||||||||||
|
|
|
For infobox for objects, check: Template:Infobox.v2