Template:Infobox vehicle part
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.
{{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: usesicon
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: usesname
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: usesimage
, 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: usesname
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
.
glove box | |
seat | |
truck bed | |
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 ifcontainer
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 (usecapacity
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, otherwisepart_tier
will be used (if defined).chance_damaged_text
- Text to display next to
chance_damaged
.
Install/Uninstall
tool
ortool_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.
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
| general = General
| weight = Encumbrance
| weight_equipped = when equipped
| properties = Properties
| capacity = Capacity
| with_organized = with organized trait.
| with_disorganized = with disorganized trait.
| units = units
| wheel_friction = Wheel friction
| max_pressure = Max pressure
| brake_force = Brake force
| damping = Damping
| compression = Compression
| noise_modifier = Noise modifier
| max_condition = Max condition
| chance_damaged = Chance damaged
| install_uninstall = Install/Uninstall
| tools = Tool(s)
| recommended_level = Recommended level
| recipe = Recipe
| technical = Technical
| item_id = Item ID
| see_all = See all
| #default = {{Error|translation}}
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.