Template:Infobox weapon/ru/doc
Этот шаблон используется в качестве инфобокс артикля в статьях про любой вид оружия, будь то оружия ближнего или дальнего боя, метательные или ловушки.
Применение
Чтобы использовать этот шаблон в статье, скопируйте приведенный ниже шаблон, а затем вставьте его в статью.
Параметры опциональны – те параметры, что не будут заполнены данными, не будут отображаться в инфобоксе статьи при сохранении.
Настоятельно рекомендуется использовать только те переменные, которые имеют отношение к конкретному предмету, о котором идет речь, т. е. параметры которые не отображаются как ложь или 0.
{{Infobox weapon/ru |display_name= |name_colour= |name_text_colour= |image= |image_width= |alternate_image= |alternate_name= |alternate_link= |alternate_image2= |alternate_name2= |alternate_link2= |alternate_image3= |alternate_name3= |alternate_link3= |alternate_image4= |alternate_name4= |alternate_link4= |alternate_image5= |alternate_name5= |alternate_link5= |alternate_image6= |alternate_name6= |alternate_link6= |alternate_image7= |alternate_name7= |alternate_link7= |alternate_image8= |alternate_name8= |alternate_link8= |alternate_image9= |alternate_name9= |alternate_link9= |alternate_image10= |alternate_name10= |alternate_link10= |alternate_image11= |alternate_name11= |alternate_link11= |alternate_image12= |alternate_name12= |alternate_link12= |alternate_image13= |alternate_name13= |alternate_link13= |alternate_image14= |alternate_name14= |alternate_link14= <!--Основное--> |category= |weight= |weight2= |function= |equipped= |secondary_item= |max_units= |contents= |can_boil_water= |rain_factor= |condition_max= |skill_type= |attachment_type= <!--Характеристики--> |ammo_type= |ammo= |clip_size= |sound_radius= |recoil_delay= |reload_time= |aiming_time= <!--Урон--> |type= |base_speed= |min_range= |max_range= |hit_chance= |min_damage= |max_damage= |crit_chance= |crit_multiplier= |tree_damage= |door_damage= |push_back= |knockdown= |kill_move= |effect_power= |effect_range= |effect_timer= |effect_type= |sensor_range= <!--Технические детали--> |ingredients= |class_name= |class_name2= }}
Параметры
Заголовок/Изображени
- display_name
- Название предмета в игре. Если оставить пустым, будет отображаться название страницы.
- name_colour
- Цвет фона за названием предмета. Коды можно найти на странице Template:Infobox nc.
- name_text_colour
- Цвет текста отображаемого названия предмета. Коды можно найти на странице Template:Infobox nc.
- image
- Изображение иконки отображается с разрешением 120 пикселей. Следует использовать вариант в 120px, если он есть.
- alternate_image
- Альтернативное изображение, отображаемое с разрешением 32 пикселя. Это может быть пустая, запакованная, открытая или любая другая версия предмета.
- alternate_name
- Альтернативное название предмета на изображении. Если оставить пустым, имя не будет отображаться при наведении курсора на изображение.
- alternate_link
- Опциональные ссылки на страницу альтернативного изображения. Если оставить пустым, ссылки не будет.
Основное
- Category
- Внутриигровая категория предмета, которая отображается в инвентаре. Зачастую "Оружие".
- weight
- Стандартный вес предмета.
- Function
- Для чего используется предмет. Обычно может быть удален, если предмет не считается инструментов в вики. (удалить, если значение пустое)
- equipped
- Как нужно экипировать предмет: в основную, в вспомогательную или в обе; одноручный или двуручный тип хватки.
- secondary_item
- Предмет необходимый во вспомогательной руке, например Коктейль молотова. (удалить, если значение пустое)
- condition_max
- Максимальная прочность предмета, когда он полностью починен.
- skill_type
- Навык связанный с оружием. (удалить, если значение пустое)
- max_units
- Максимальное количество единиц в полном предмете.Рассчитывается с использованием "UseDelta" value:
1 / UseDelta
. - contents
- Содержимое предмета т. е. вода, электричество и т. п. . (удалить, если предмет ничем не наполняется)
- can_boil_water
- Whether this item can be used to boil/cook water. Displayed by the variable "iscookable". (remove if value is not considered a water container)
- rain_factor
- The item's rain factor when it's left on the ground while it's raining. (remove if value is empty)
Characteristics
- ammo_type
- **DEPRECATED: use
ammo
instead** The ammo type this weapon uses if it has one. (remove if value is empty) - ammo
- The ammo type this weapon uses. This value is used in
{{img_item}}
to automatically generate the ammo icon with link. (remove if value is empty) - clip_size
- The amount of ammo/bullets in a single clip/magazine. (remove if value is empty)
- sound_radius
- The radius of sound that is given off from using the item. (remove if value is empty)
- recoil_delay
- The time required between each shot before maximum accuracy. remove if value is empty)
- reload_time
- The time it takes to reload the weapon. (remove if value is empty)
- aiming_time
- The time taken to aim the weapon. (remove if value is empty)
Damage
- type
- The damage type this weapon does, such as blunt and blade. Firearms should be "gunshot". Throwables should be the same is their "effect_type".
- base_speed
- The time it takes to perform a full swing (previously "swing_time"). (remove if value is empty)
- min_range
- The item's minimum range, regardless of whether it's melee or ranged. (make 0 if value is empty)
- max_range
- The item's maximum range, regardless of whether it's melee or ranged.
- hit_chance
- The chance of hitting an enemy for a firearm. Should be the "HitChance" variable. (remove if value is empty)
- min_damage
- The item's minimum damage it can deal. (remove if value is empty)
- max_damage
- The item's maximum damage it can deal. (remove if value is empty)
- crit_chance
- The chance of doing a critical hit. (remove if value is empty)
- crit_multiplier
- The damage multiplayer when a critical hit. Appears as an abbr/tooltip for crit_chance. (remove if value is empty)
- tree_damage
- The item's damage to trees. (remove if value is empty)
- door_damage
- The item's damage to doors. (remove if value is empty)
- push_back
- The PushBackMod. (remove if value is empty)
- knockdown
- The KnockdownMod. (remove if value is empty)
- kill_move
- The special kill move a weapon has, such as Jaw Stab. (remove if value is empty)
- effect_power
- The power of the effect caused by the item. (remove if value is empty)
- effect_timer
- Time before trap is triggered. Defined by the
ExplosionTimer
variable. (remove if value is empty) - effect_range
- The range of the trap's effect. Defined by either
ExplosionRange
,FireRange
,SmokeRange
orNoiseRange
. (remove if value is empty) - effect_type
- The effect given-off by the trap. Can be either: "explosion", "fire", "smoke" or "noise". Any other value will display as "Effect range". (remove if value is empty)
- sensor_range
- How close an entity needs to be before the trap is triggered. (remove if value is empty)
Technical details
- ingredients
- A list of ingredients required to make this item. Please use the following format:
1 × [[Plank]]
and separate ingredients into a list with<br>
. - class_name
- The item's module and ID name.
Examples
Blunt weapons, displaying the Baseball Bat infobox
Baseball Bat | ||
---|---|---|
| ||
General | ||
Category | Sports | |
Encumbrance | 2 | |
Equipped | One-handed | |
Condition max. | 15 | |
Skill | Long Blunt | |
Attachment | Back | |
Damage | ||
Type | Blunt | |
Attack speed | 1 | |
Range | 0.61–1.25 tiles | |
Damage | 0.8–1.1 | |
Tree damage | 1 | |
Door damage | 5 | |
Knockback | 0.5 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.BaseballBat | |
{{Infobox weapon |display_name=Baseball Bat |image=BaseballBat_Model.png |image_width=200px |alternate_image=BaseballBat.png |alternate_name=Baseball Bat |alternate_link= <!--GENERAL--> |category=Sports |weight=2 |equipped=One-handed |condition_max=15 |attachment_type=Shovel <!--DAMAGE--> |type=Blunt |skill_type=Blunt |base_speed=1 |min_range=0.61 |max_range=1.25 |min_damage=0.8 |max_damage=1.1 |tree_damage=1 |door_damage=5 |push_back=0.5 |knockdown=2 <!--TECHNICAL DETAILS--> |ingredients= |class_name=Base.BaseballBat }}
Blade weapons, displaying the Kitchen Knife infobox
Kitchen Knife | ||
---|---|---|
| ||
General | ||
Category | Cooking | |
Encumbrance | 0.3 | |
Equipped | One-handed | |
Condition max. | 10 | |
Skill | Short Blade | |
Attachment | Belt | |
Damage | ||
Type | Slash | |
Range | 0.61–0.9 tiles | |
Damage | 0.3–0.7 | |
Tree damage | 1 | |
Door damage | 1 | |
Knockback | 0.3 | |
Knockdown | 0 | |
Execution | Jaw_Stab | |
Technical details | ||
Base ID | Base.KitchenKnife | |
{{Infobox weapon |display_name=Kitchen Knife |image=Knife_Model.png |image_width=200px |alternate_image=KnifeChopping.png |alternate_name=Kitchen Knife |alternate_link= <!--GENERAL--> |category=Cooking |weight=0.3 |equipped=One-handed |condition_max=10 |attachment_type=Knife <!--DAMAGE--> |type=Slash |skill_type=SmallBlade |min_range=0.61 |max_range=0.9 |min_damage=0.3 |max_damage=0.7 |tree_damage=1 |door_damage=1 |push_back=0.3 |knockdown=0 |kill_move=Jaw_Stab <!--TECHNICAL DETAILS--> |ingredients= |class_name=Base.KitchenKnife }}
Firearm weapons, displaying the M9 Pistol infobox
M9 Pistol | ||
---|---|---|
| ||
General | ||
Category | Weapon | |
Encumbrance | 1.5 | |
Equipped | One-handed | |
Condition max. | 10 | |
Skill | Firearm | |
Attachment | Holster | |
Characteristics | ||
Ammo type | ||
Magazine size | 15 | |
Noise radius | 40 tiles | |
Recoil delay | 20 | |
Reload time | 30 | |
Aiming time | 15 | |
Damage | ||
Type | Gunshot | |
Range | 0.61–7 tiles | |
Damage | 0.6–1 | |
Door damage | 5 | |
Accuracy | 50 | |
Knockback | 0.3 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.Pistol | |
{{Infobox weapon |display_name=M9 Pistol |image=Handgun03_Model.png |image_width=200px |alternate_image=HandGun3.png |alternate_name=M9 Pistol |alternate_link= <!--GENERAL--> |category=Weapon |weight=1.5 |equipped=One-handed |condition_max=10 |attachment_type=Holster <!--CHARACTERISTICS--> |ammo=Bullets9mm |clip_size=15 |sound_radius=40 |recoil_delay=20 |reload_time=30 |aiming_time=15 <!--DAMAGE--> |type=Gunshot |skill_type=Firearm |min_range=0.61 |max_range=7 |hit_chance=50 |min_damage=0.6 |max_damage=1 |door_damage=5 |push_back=0.3 |knockdown=2 <!--TECHNICAL DETAILS--> |ingredients= |class_name=Base.Pistol }}
Throwable weapons, displaying the Molotov Cocktail infobox
Molotov Cocktail | ||
---|---|---|
| ||
General | ||
Category | Devices | |
Encumbrance | 1.5 | |
Equipped | One-handed | |
Secondary | ||
Skill | Fire | |
Damage | ||
Type | Fire | |
Damage | 0–0 | |
Fire power | 90 | |
Fire range | 4 tiles | |
Technical details | ||
Base ID | Base.Molotov | |
{{Infobox weapon |display_name=Molotov Cocktail |image=Molotov_Model.png |image_width=200px |alternate_image=Molotov.png |alternate_name=Molotov Cocktail |alternate_link= <!--GENERAL--> |category=Devices |weight=1.5 |equipped=One-handed |secondary_item=Lighter <!--DAMAGE--> |type=Fire |effect_power=90 |effect_range=4 |effect_type=Fire |max_range=8 |min_damage=0 |max_damage=0 <!--TECHNICAL DETAILS--> |ingredients= |class_name=Base.Molotov }}
Trap weapons, displaying the Aerosol Bomb with Sensor infobox
Aerosol Bomb with Timer | ||
---|---|---|
| ||
General | ||
Category | Devices | |
Encumbrance | 1.5 | |
Equipped | One-handed | |
Skill | Explosion | |
Damage | ||
Type | Explosion | |
Damage | 0–0 | |
Knockdown | 0 | |
Explosion power | 70 | |
Explosion range | 6 tiles | |
Explosion timer | 10 | |
Technical details | ||
Base ID | Base.AerosolbombTriggered | |
{{Infobox weapon |display_name=Aerosol Bomb with Timer |image=Molotov_Model.png |image_width=200px |alternate_image=AerosolbombTimer.png |alternate_name=Aerosol Bomb with Timer |alternate_link= <!--GENERAL--> |category=Devices |weight=1.5 |equipped=One-handed <!--DAMAGE--> |type=Explosion |effect_power=70 |effect_range=6 |effect_timer=10 |effect_type=Explosion |max_range=10 |min_damage=0 |max_damage=0 |knockdown=0 <!--TECHNICAL DETAILS--> |ingredients= |class_name=Base.AerosolbombTriggered }}