Template:Infobox vehicle part

From PZwiki
Notebook.pngTemplate Documentation

This template is used to create an infobox in an article about vehicle parts.

Usage

To use this template in an article, copy the template below, then paste the template into the article, filling in the blanks.

name
Image.png
General
Category
category
Encumbrance
Moodle Icon HeavyLoad.png
3 weight_text
Function
function
Properties
Capacity Trunk
10  capacity_text
Wheel friction
wheel_friction (part_tier)
Max pressure
pressure_max (part_tier)
Brake force
brake_force (part_tier)
Damping
damping
Compression
compression
Noise modifier
noise_mod (part_tier)
Max condition
condition
Chance damaged
chance_damaged chance_damaged_text
Install/Uninstall
Tool(s)
tool
Recommended level
skill
Recipe
recipe
Technical
Item ID
item_id
[See all]
{{Infobox vehicle part
|name=
|model=
|model_width=
|icon=
|icon_name=
<!--General-->
|category=
|weight=
|weight_text=
|function=
<!--Properties-->
|container=
|capacity=
|capacity_text=
|wheel_friction=
|pressure_max=
|brake_force=
|damping=
|compression=
|part_tier=
|noise_mod=
|damage_chance=
|vehicle_type=
|vehicle_type2=
|vehicle_type3=
|condition_max=
|chance_damaged=
<!--Install/Uninstall-->
|tool_tag=<!-- or |tool -->
|skill=
|recipe=
<!--Technical-->
|item_id=
|item_id_more=
}}

Parameters

Image and name

name
Name of the item. Displayed at the top of the infobox. Default: uses page display title
model
Model for the item with the format Image.png. Multiple images can be set by changing the suffix id, e.g. model2. Default: uses icon if defined
model_name
Name of the item for the model. If multiple images are defined, it will be set for the model with the same suffix id, e.g. model_name2. Default: uses name if defined
icon
Icon for the item, with the format Image.png. Multiple icons can be set by changing the suffix id, e.g. icon2. Default: uses image, only if more than one image defined
icon_name
Name of the icon. If multiple icons are defined, it will be set for the icon with the same suffix id, e.g. icon_name2. Default: uses name if defined

General

category
The in-game category for the item.
weight
The encumbrance (previously weight) of the item. Will automatically calculate the weight when equipped and display as a tooltip. Up to 3 different weights can be defined by adding a suffix id to the end of the parameter, e.g. weight2.
weight_text
Text to appear next to the weight value with the same suffix id. E.g. (regular).
function
The function of the item, if not obvious from other infobox parameters. If none, leave blank.

Properties

vehicle_type
The vehicle type. Will be displayed next to certain properties. Up to 3 can be defined, which should always be the following: 1 = Standard, 2 = Heavy-Duty, 3 = Sport. Should only be defined if required.
part_tier
The tier of the part, i.e. the name prefix (such as "Old"). Up to 3 can be defined. Should only be defined if required.
container
The type of container. This will determine the icon to be displayed next to capacity.
Container GloveCompartment.png glove box
Container CarSeat.png seat
Container TruckBed.png truck bed
Container CarTrunk.png trunk
capacity
The maximum weight that the container of a single tile can store, or other non-storage related capacities, such as electricity charge (use pressure_max instead for tires). If required, tooltips can be set manually using Template:Container capacity, which are automatically added if container is defined. Up to 3 different capacities can be defined by adding a suffix id to the end of the parameter, e.g. capacity2.
capacity_text
Displays text next to the capacity value with the same suffix id. Used so automatic calculations/tooltips will still be displayed.
wheel_friction
WheelFriction value for the item (tires). part_tier can be used to display the tier of the part next to the value with the same suffix id.
pressure_max
ConditionMax for tires (use capacity for other items). part_tier can be used to display the tier of the part next to the value with the same suffix id.
brake_force
brakeForce value for the item (brakes). part_tier can be used to display the tier of the part next to the value with the same suffix id.
damping
SuspensionDamping value for the item (suspension). vehicle_type can be used to display the vehicle type for the part next to the value with the same suffix id.
compression
SuspensionCompression value for the item (suspension). vehicle_type can be used to display the vehicle type for the part next to the value with the same suffix id.
noise_mod
EngineLoudness value for the item (muffler). part_tier can be used to display the tier of the part next to the value with the same suffix id.
condition_max
ConditionMax value for the item.
chance_damaged
ChanceToSpawnDamaged value for the item. chance_damaged_text can be used to display text next to the value, otherwise part_tier will be used (if defined).
chance_damaged_text
Text to display next to chance_damaged.

Install/Uninstall

tool or tool_tag
The tool or tool tag required to install/uninstall the part. tool_tag will automatically link to the appropriate item tag. Up to 3 can be defined by changing the suffix id, e.g. tool2.
skill
The recommended level for installing/uninstalling the part. Up to 3 can be defined by changing the suffix id, e.g. skill2.
recipe
The recipe required to install/uninstall.

Technical

item_id
The ID for the item. The format is [module].[name]. Multiple item IDs can be set by either: separating with <br> or adding a 'suffix id' to the end (up to 10), e.g. item_id2.
item_id_more
Adds a "See all" link, linking to the section named in the parameter. E.g. id_more=Item IDs will link to a section called "Item IDs". This is useful for multiple IDs, or where more information is required to distinguish between each ID, as the ID itself may not be very descriptive.

See also

Editors can experiment in this template's sandbox.