Шаблон:Building Infobox/doc

Материал из Foxhole Wiki
Перейти к навигации Перейти к поиску
Данной статье требуется перевод. Вы можете помочь, расширив данную статью с помощью перевода на русский язык.


Template-info.png Документация

Usage

Infobox used for all Structures. Place it after any notice templates like {{Stub}} but before {{Quote}}.

NOTE: All info related to production of Shippables is done in ProductionShippable with ProductionShippable template, defining a CargoTable

Parameters

Parameter Description
name Full name of the structure. Mandatory
image Image file name with no markup. E.g. Crane.png.
caption Caption for the image.
alt_text Alt text describing the image for screen readers. Defaults to This vehicle's in-game icon.
intelligence_icon The image of the structure's intelligence, using any of the following will give it map intelligence icons. If it is special, use it's special map icon. As follows; Defense, Structure, Artillery, Hospital, Outpost, and Facilities.
map_icon Use in place of intelligence_icon if the building has a special map symbol.
faction Displays the faction that can build the structure. Defaults to both factions being able to construct the structure, with three options for changing it. Col = Colonial, War = Warden, and Both for both sides can construct it.
construction_type The type of construction the structure is. Possible values are: World Structure, Player Structure, Shippable, Bunker Modification, Deployed Structure.
type The type/use of the structure. Possible values are: Defense, Player Manned Defense, Automated Defense, Resource Generation, Forward Base, Home Base,Storage, Production, Utility, Resource Field, or Bridge.
cost Cost of the structure if it's buildable. ResourceDisp must be manually used in the value to show the material icons. Leave blank for shippable structures.
built_with What this is build with. Tags Possible are: Hammer, Construction Vehicle, Shovel, Sandbags, MetalBeam, Concrete, BarbedWire, Pipe. Otherwise it shows the raw value. Leave blank for shippable structures.
repair Amount of bmats to repair the structure
slots Amount of inventory slots
capacity The structure's stockpile capacity
intel_range The Intelligence Gathering radius provided by the structure
ai_range The AI connection radius provided by the structure
ammo The type of ammo used by the structure. 8mm, RPG Shell, etc. If multiple, use ammo2 and ammo3 below. ONLY FOR STRUCTURES THAT CONSUME ACTUAL AMMUNITION.
ammo2 The second type of ammo used by the structure.
ammo3 The third type of ammo used by the structure.
firing_range_effective The effective firing range of the structure, either AI or manual for artillery. Use only when there is damage falloff.
firing_range The firing range of the structure, either AI or manual for artillery. For AI the range is measured from the edge of the structure.
firing_range_inac The firing range of the structure, either AI or manual for artillery. Used for coastal gun.
retaliation_range The firing range of the structure's AI when retaliating. Measured from the edge of the structure.
wrenchable Is it dismantlable with a wrench? Possible values are: Yes, No, or nothing.
rammable Can it be run over by a vehicle? Possible values are: Tank, Truck, Ship, or nothing.
fueltype The type of liquids that can be used as fuel in the structure. Available values:Oil, Heavy Oil, Enriched Oil, Coal, Diesel, Petrol, Diesel/Petrol, Nothing.
fuelcap The maximum amount of fuel the structure can hold in liters. The L is automatically added.
fuelrate The amount of liters of fuel consumed per hour in liters. The unit must be manually added.
fuelduration The time it takes for the structure to fully deplete its fuel tank. The unit must be manually added.
structure_hp The total hp of the structure. Used by {{Building_Infobox.Structure_Health}}.
structure_hp_B The total hp of the structure when it has a second model (Garrison House) or health mode (Emplacements in trench).
structure_hp_C The total hp of the structure when it has a third model (e.g. Town Base).
armour_type The type of armour of the structure. Used by {{Building_Infobox.Structure_Health}}. Possible values are: Tier1Tank, Tier1Structure, Tier2Structure, Tier2BStructure, Tier3Structure, Trench, Tier1GarrisonHouse,Tier2GarrisonHouse,Tier3GarrisonHouse, None, or nothing.
base_tier Whether the structure is the first tier. Values are "Yes" or "No". Leave blank for non-tiered structures
status To specify special circumstances of a structure. Possible values are: Unavailable, or nothing (default value).

Empty Template

Paste this into any new structure page, if it doesn't have multiple tiers.

{{Building Infobox
|name = 
|image = 
|caption = 
|alt_text = 
|intelligence_icon = 
|map_icon = 
|faction = 
|type = 
|cost =
|built_with = 
|repair = 
|slots = 
|capacity = 
|heat = 
|intel_range =
|ai_range = 
|firing_range_effective = 
|firing_range = 
|firing_range_inac =  
|production_cost =
|cr_cost = 
|cr_time = 
|cr_amount = 
|fac_location =
|fac_cost =
|fac_prod_time =
|wrenchable =
|structure_hp =
|armour_type =
|dpl_icon = 
|dpl_description = 
}}

And paste this if it has multiple tiers:

{{Building Infobox
|name = 
|image = 
|caption = 
|alt_text = 
|intelligence_icon = 
|map_icon = 
|map_icon2 = 
|map_icon3 = 
|faction = 
|type = 
|cost =
|cost2 =
|cost3 =
|built_with = 
|built_with2 = 
|built_with3 = 
|repair = 
|repair2 = 
|repair3 = 
|slots = 
|capacity = 
|heat = 
|intel_range =
|intel_range2 =
|intel_range3 =
|ai_range = 
|firing_range_effective = 
|firing_range = 
|firing_range_inac =  
|production_cost =
|cr_cost = 
|cr_time = 
|cr_amount = 
|fac_location =
|fac_cost =
|fac_prod_time =
|wrenchable =
|structure_hp =
|structure_hp2 =
|structure_hp3 =
|armour_type =
|armour_type2 =
|armour_type3 =
|dpl_icon = 
|dpl_description = 
}}

Это страница документации. Её следует включить в основную страницу шаблона. Более подробная информация здесь.