Difference between revisions of "Template:Specs/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Added fleet-specific parameters)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Using <nowiki>{{#unit}} / {{specs}}</nowiki> ==
+
{{docpage}}
<nowiki>#unit</nowiki> is structured as <nowiki>{{#unit: '''VehicleName''' | '''arg1''' | '''arg2''' | '''arg3''' | '''arg4'''}}</nowiki>
 
  
The vehicle name is the name used in the game files.
+
= Using <nowiki>{{#unit}} / {{specs}}</nowiki> =
 +
<nowiki>#unit</nowiki> is structured as <nowiki>{{#unit: "VehicleCode" | "arg1" | "arg2" | "arg3" | "arg4"}}</nowiki>
  
<nowiki>{{Specs}}</nowiki> functions identically to #unit with the caveats that it must be used after <nowiki>{{Specs-Card}}</nowiki> and uses the vehicle inputting into it.
+
<nowiki>{{Specs}}</nowiki> functions identically to #unit with the caveat that it must be used after [[:Template:Specs-Card|<nowiki>{{Specs-Card}}</nowiki>]] and returns values based on the vehicle inputted into Specs-Card.
  
So it is structured as <nowiki>{{Specs | '''arg1''' | '''arg2''' | '''arg3''' | '''arg4'''}}</nowiki>
+
It is structured as <nowiki>{{Specs | "arg1" | "arg2" | "arg3" | "arg4"}}</nowiki>
  
Each list inwards is the next argument in the template.
+
Each list indent is the next argument in the template. Arguments are not case-sensitive.
  
=== English arguments===
+
== English arguments ==
 
+
=== General ===
{| class="wikitable"
+
{| class="wikitable" width="100%"
 +
|-
 +
! width="25%" | Argument !! width="50%" | Description !! width="25%" | Details
 +
|-
 +
| article
 +
* (optional) ru
 +
| Page/Article name
 +
* Russian article name
 
|-
 
|-
! Argument !! Description
+
| name || Full name ||
 
|-
 
|-
| article || Article name to be used in <nowiki>[[ARTICLE]]</nowiki>
+
| pseudonym || Shortened name ||
 
|-
 
|-
| pseudonym || Shortened name
+
| image || Name to be used in <nowiki>https://encyclopedia.warthunder.com/images/[IMAGE].png</nowiki> ||
 
|-
 
|-
| name || Full name
+
| country || Country ||
 
|-
 
|-
| image || Image name to be used in <nowiki>https://encyclopedia.warthunder.com/images/IMAGE.png</nowiki>
+
| type || Vehicle type
 
+
|
 +
* 1 = plane
 +
* 2 = tank
 +
* 3 = ship
 +
* 4 = heli
 
|-
 
|-
| country || Country
+
| class
 +
* 1, 2, 3...
 +
** (optional) code
 +
| Vehicle class
 +
* Class1, class2...
 +
** Class code
 +
|
 
|-
 
|-
 
| rank
 
| rank
*(optional) value  
+
* (optional) value
|| Rank in roman numerals
+
| Rank in roman numerals
*in numbers
+
* in numbers
 +
|
 
|-
 
|-
| br  
+
| br
 
* AB
 
* AB
* (optional)RB
+
* (optional) RB
 
* SB
 
* SB
|| BR per mode. Defaults to RB
+
| BR per mode || defaults to RB
 +
|-
 +
| premium || Is a premium vehicle?
 +
|
 +
* 0 = no
 +
* 1 = yes
 
|-
 
|-
| crew || Number of crew
+
| gift || Is a gift vehicle?
|}
+
|
 
+
* 0 = no
{| class="wikitable"
+
* 1 = yes
 
|-
 
|-
! Argument !! Description !! Details
+
| squadron || Is a squadron vehicle?
 +
|
 +
* 0 = no
 +
* 1 = yes
 
|-
 
|-
| акционная || premium ||  0=no 1=yes
+
| research
 +
* (optional) value
 +
| Research cost
 +
| in RP
 +
* un-delimited
 
|-
 
|-
| асы || ace crew price || in GE
+
| price
 +
* currency
 +
* (optional) value
 +
| Purchase cost
 +
| in SL
 +
* S = {{sl}}
 +
* Z = {{ge}}
 
|-
 
|-
| базовая || basic crew price || in SL
+
| crew
 +
* basic
 +
* experts
 +
* aces
 +
| Number of crew
 +
* Basic crew cost
 +
* Expert crew cost
 +
* Ace crew cost
 +
| &nbsp;
 +
* in SL
 +
* in SL
 +
* in GE
 
|-
 
|-
| бр
+
| repair
* аб
+
* ab
* рб
+
** max
* сб
+
** min
|| BR
+
* rb
 +
** max
 +
** min
 +
* sb
 +
** max
 +
** min
 +
| Repair cost
 
* AB
 
* AB
 +
** max
 +
** min
 
* RB
 
* RB
 +
** max
 +
** min
 
* SB
 
* SB
|| defaults to RB
+
** max
 +
** min
 +
| defaults to RB and maximum
 +
|-
 +
| expmul || RP modifier || in percent
 +
|-
 +
| коэф_львы
 +
* ab
 +
* rb
 +
* sb
 +
| SL modifier
 +
| in percent
 +
* defaults to RB
 +
|}
 +
 
 +
=== Aircraft ===
 +
{| class="wikitable" width="100%"
 +
|-
 +
! width="25%" | Argument !! width="50%" | Description !! width="25%" | Details
 
|-
 
|-
| вес
+
| mass
* пустой
+
* empty
* полный
+
| Take-off weight
|| weight
 
 
* Empty weight
 
* Empty weight
* Maximum Weight
+
| in metric tons
|| in metric tons Defaults to takeoff
 
|-
 
| вираж
 
* аб
 
* рб
 
* сб
 
|| turn time in
 
* AB
 
* RB
 
* SB
 
|| in seconds
 
 
|-
 
|-
| двигатель
+
| engine
* количество
+
* amount
* тип
+
* type
* сод
+
* cooling
* название
+
| Engine name
|| engine name  
+
* Number of engines
* number of engines
+
* Engine type
* engine type
+
* Cooling type (air or water)
* cooling type(air or water)
+
|
* name
 
||  
 
 
|-
 
|-
| допорудие
+
| ceiling || Max altitude || in metres
* 1,2,3...
 
** 1,2,3...
 
*** название
 
*** боезапас
 
|| additional guns
 
* gunoption1, gunoption2, gunoption3...?
 
** gun1, gun2, gun3?
 
*** name
 
*** total ammunition(all guns combined)
 
|| needs 4 args. Currently nonfunctional
 
 
|-
 
|-
| изображение || image name || <nowiki>https://encyclopedia.warthunder.com/images/NAME.png</nowiki>
+
| destruction
 +
* body
 +
* gear
 +
| Rip speed of
 +
* wings
 +
* gear
 +
| in km/h
 
|-
 
|-
| исследование || research cost || in RP
+
| offensive
 +
* 1, 2, 3...
 +
** ammunition
 +
** amount
 +
** caliber
 +
** code
 +
** firerate
 +
| &nbsp;
 +
* Gun1 name, gun2 name...
 +
** Total ammunition
 +
** Number of guns
 +
** Calibre
 +
** Gun code
 +
** Rate of fire
 +
| Offensive guns
 +
<br>
 +
<br>
 +
<br>
 +
* in mm
 +
<br>
 +
* in rounds per minute per gun
 
|-
 
|-
| класс
+
| defensive
* 1,2,3...
+
* 1, 2, 3...
** код
+
** ammunition
|| vehicle category
+
** amount
* category1, category2...
+
** caliber
** displays category
+
** code
|| needs three args
+
** guns
 +
** firerate
 +
| &nbsp;
 +
* Gun name in turret1, turret2...
 +
** Total ammunition of turret
 +
** Number of turrets
 +
** Calibre
 +
** Guns code
 +
** Number of guns in turret
 +
** Rate of fire
 +
| Defensive (turreted) guns
 +
<br>
 +
<br>
 +
<br>
 +
* in mm
 +
<br>
 +
<br>
 +
* in rounds per minute per gun
 
|-
 
|-
| курсовое
+
| external
* 1,2,3...
+
* 1, 2, 3...
** боезапас
+
** 1, 2, 3...
** код
+
*** amount
** количество
+
| Suspended ordnance
** название
+
* Preset1, preset2, preset3...
** скорострельность
+
** Name of armament1, armament2, armament3...
|| offensive guns for planes
+
*** Number of armament
* gun1, gun2, gun3
+
|
** total ammunition(all guns combined)
 
** code name of guns
 
** number of guns
 
** name
 
** RoF(rounds per minute per gun)
 
|| needs 3 args
 
 
|-
 
|-
| название || name ||  
+
|}
 +
 
 +
=== Ground vehicles ===
 +
{| class="wikitable" width="100%"
 
|-
 
|-
| оборонительное
+
! width="25%" | Argument !! width="50%" | Description !! width="25%" | Details
* 1,2,3...
 
** боезапас
 
** код
 
** количество
 
** название
 
** орудия
 
** скорострельность
 
|| defensive guns
 
* turret1, turret2, turret3...
 
** total ammunition of turret
 
** code name of guns
 
** number of turrets
 
** name
 
** # of guns in turret
 
** RoF(rounds per minute per gun)
 
|| needs at least 3 args
 
 
|-
 
|-
| опыткоэф || RP modifier ||  
+
| mass
 +
| Weight
 +
| in metric tons. Includes add-on armour.
 
|-
 
|-
| орудие
+
| cannon
* 1,2,3...
+
* 1, 2, 3...
** боезапас
+
** ammunition
** дальность
+
** amount
** калибр
+
** caliber
** код
+
** code
** количество
+
** firerate
** название
+
** mag
** обойма
+
** (optional) name
** скорострельность
+
** range
** скорость
+
** speed
** стабилизатор
+
** stabilizer
 +
** угн
 +
*** max
 +
*** min
 
** увн
 
** увн
*** макс
+
*** max
*** мин
+
*** min
** угн
+
| Tank guns
*** макс
+
* gun1, gun2, gun3, etc
*** мин
+
** Total ammunition
|| tank guns
+
** Number of guns
* gun1, gun2, gun3
+
** Calibre
** total ammo
+
** Gun code
** range???
+
** Rate of fire
** caliber
+
** Number of bullets per magazine
** code name of gun
+
** Gun name
** number of shells in belt
+
** Range
** # of guns
+
** The speed of the projectile
** name of gun
+
** Gun stabilization type
** # of bullets per magazine
+
** Horizontal guidance
** RoF(rounds per minute per gun)
+
*** max
** muzzle velocity?
 
** stabilizer
 
** vertical guidance
 
*** max
 
 
*** min
 
*** min
** horizontal guidance
+
** Vertical guidance
*** max
+
*** max
 
*** min
 
*** min
|| needs 3 or more args
+
| &nbsp;
 +
<br>
 +
<br>
 +
* in rounds per minute per gun
 +
* only available for guns that use a belt-loading system
 +
* default
 +
* in metres
 +
* only available for self-propelled projectiles (e.g. missiles and rockets)
 +
<br>
 +
* in degrees
 
|-
 
|-
| передачи
+
| speed
* вперед
+
* forward
* назад
+
** ab
|| # of transmission gears
+
** rb
* forwards
+
* back
* backwards
+
** ab
|| needs 2 args
+
** rb
 +
| Maximum speed
 +
* Forwards
 +
** AB
 +
** RB
 +
* Backwards
 +
** AB
 +
** RB
 +
| Defaults to RB
 
|-
 
|-
| подвесное
+
| gears
* 1,2,3...
+
* forward
** 1,2,3...
+
* back
*** количество
+
| Number of transmission gears
*** название
+
* Forwards
|| payloads
+
* Reverse
* payload1, payload2, payload3...
+
|
** armament1, armament2, armament3...
 
*** number of armament
 
*** name
 
|| needs at least 3 args for rockets, bombs, and torpedoes
 
 
|-
 
|-
| потолок || max altitude || in meters
+
|}
|-
+
 
| разрушение
+
=== Fleet ===
* конструкции
+
{| class="wikitable" width="100%"
* шасси
 
|| destruction of
 
* wings(and aircraft)
 
* gear
 
|| in km/h
 
|-
 
| ранг
 
* значение
 
|| rank
 
* rank in numbers
 
|| in roman numerals
 
|-
 
| ремонт
 
* аб
 
** макс
 
** мин
 
* рб
 
** макс
 
** мин
 
* сб
 
** макс
 
** мин
 
|| repair cost
 
* AB
 
** max
 
** min
 
* RB
 
** max
 
** min
 
* SB
 
** max
 
** min
 
|| defaults to RB and maximum if not specified
 
|-
 
| сваливание || stall speed || in km/h
 
|-
 
| статья || wiki article title ||  
 
 
|-
 
|-
| страна || country ||  
+
! width="25%" | Argument !! width="50%" | Description !! width="25%" | Details
 
|-
 
|-
| тип || type of vehicle || 1=plane, 2=tank, 3=ship, 4=heli
+
| displacement || || in tons
 
|-
 
|-
| цена || cost to buy || in SL
+
| speed
 +
* forward
 +
** ab
 +
** rb
 +
* back
 +
** ab
 +
** rb
 +
| Maximum speed
 +
* Forwards
 +
** AB
 +
** RB
 +
* Backwards
 +
** AB
 +
** RB
 +
| Defaults to RB
 
|-
 
|-
| штаторудие
+
| section || Number of sections
* 1,2,3...
 
** боезапас
 
** количество
 
** название
 
** обойма
 
** орудия
 
** скорострельность
 
** тип
 
|| ship guns
 
* gun1, gun2, gun3...
 
** total ammunition of turret
 
** number of turrets
 
** name
 
** # of bullets per magazine
 
** # of guns in turret
 
** RoF(rounds per minute per gun)
 
** gun type(primary, secondary, machinegun, torpedo
 
|| needs at least 2 args
 
 
|-
 
|-
| экипаж || # of crew members ||  
+
| armour
 +
* turret
 +
** front
 +
** side
 +
** back
 +
* citadel
 +
** front
 +
** side
 +
** back
 +
* hull
 +
** thickness
 +
** material
 +
* superstructure
 +
** thickness
 +
** material
 +
| Armour thickness
 +
* Main armament turrets
 +
** Front
 +
** Sides
 +
** Back
 +
* Citadel
 +
** Front
 +
** Sides
 +
** Back
 +
* Hull
 +
** Thickness
 +
** Material
 +
* Superstructure
 +
** Thickness
 +
** Material
 +
| in mm
 
|-
 
|-
| эксперты || expert crew price || in SL
+
| weapon
 +
* main
 +
** количество
 +
** 1, 2, 3...
 +
*** ammunition
 +
*** amount
 +
*** caliber
 +
*** code
 +
*** firerate
 +
*** guns
 +
*** mag
 +
*** (optional) name
 +
*** увн
 +
**** max
 +
**** min
 +
* secondary
 +
** ''same as primary''
 +
* antiaircraft
 +
** ''same as primary''
 +
* дополнительное
 +
** 1, 2, 3...
 +
*** 1, 2, 3...
 +
**** name
 +
|<br>
 +
* Primary armaments
 +
** Number of distinct primary weapons
 +
** Weapon 1, 2, 3, etc
 +
*** Total ammunition
 +
*** Number of turrets
 +
*** Calibre
 +
*** Gun code
 +
*** Rate of fire
 +
*** Number of guns
 +
*** Belt capacity
 +
*** Weapon name
 +
*** Vertical guidance
 +
**** max
 +
**** min
 +
* Secondary armaments
 +
<br>
 +
* Anti-aircraft armaments
 +
<br>
 +
* Additional armaments
 +
** Preset1, 2, 3, etc
 +
*** Weapon1, 2, 3, etc
 +
**** Name
 +
|
 
|}
 
|}
  
 
+
== Russian arguments ==
=== Russian arguments ===
 
 
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! Argument !! Description !! Details
 
! Argument !! Description !! Details
 
|-
 
|-
| акционная || premium || 0=no 1=yes
+
| акционная || premium || 0=no 1=yes
 
|-
 
|-
 
| асы || ace crew price || in GE
 
| асы || ace crew price || in GE
Line 298: Line 420:
 
| базовая || basic crew price || in SL
 
| базовая || basic crew price || in SL
 
|-
 
|-
| бр  
+
| бр
* аб
+
 
 +
* аб
 
* рб
 
* рб
 
* сб
 
* сб
|| BR
+
| BR
 +
 
 
* AB
 
* AB
 
* RB
 
* RB
Line 308: Line 432:
 
  || defaults to RB
 
  || defaults to RB
 
|-
 
|-
| вес  
+
| вес
* пустой
+
 
 +
* пустой
 
* полный
 
* полный
|| weight
+
| weight
 +
 
 
* Empty weight
 
* Empty weight
 
* Maximum Weight
 
* Maximum Weight
 
  || in metric tons Defaults to takeoff
 
  || in metric tons Defaults to takeoff
 
|-
 
|-
| вираж  
+
| вираж
* аб
+
 
 +
* аб
 
* рб
 
* рб
 
* сб
 
* сб
|| turn time in
+
| turn time in
 +
 
 
* AB
 
* AB
 
* RB
 
* RB
Line 326: Line 454:
 
  || in seconds
 
  || in seconds
 
|-
 
|-
| двигатель  
+
| двигатель
* количество
+
 
* тип
+
* количество
* сод
+
* тип
 +
* сод
 
* название
 
* название
|| engine name  
+
| engine name
* number of engines
+
 
* engine type
+
* number of engines
* cooling type(air or water)
+
* engine type
 +
* cooling type(air or water)
 
* name
 
* name
||  
+
|
 
|-
 
|-
| допорудие  
+
| допорудие
 +
 
 
* 1,2,3...
 
* 1,2,3...
 
** 1,2,3...
 
** 1,2,3...
*** название
+
*** название
*** боезапас  
+
*** боезапас
|| additional guns  
+
| additional guns
 +
 
 
* gunoption1, gunoption2, gunoption3...?
 
* gunoption1, gunoption2, gunoption3...?
 
** gun1, gun2, gun3?
 
** gun1, gun2, gun3?
*** name
+
*** name
 
*** total ammunition(all guns combined)
 
*** total ammunition(all guns combined)
|| needs 4 args. Currently nonfunctional
+
| needs 4 args. Currently nonfunctional
 
|-
 
|-
 
| изображение || image name || <nowiki>https://encyclopedia.warthunder.com/images/NAME.png</nowiki>
 
| изображение || image name || <nowiki>https://encyclopedia.warthunder.com/images/NAME.png</nowiki>
Line 354: Line 486:
 
| исследование || research cost || in RP
 
| исследование || research cost || in RP
 
|-
 
|-
| класс  
+
| класс
 +
 
 
* 1,2,3...
 
* 1,2,3...
** код  
+
** код
|| vehicle category  
+
| vehicle category
 +
 
 
* category1, category2...
 
* category1, category2...
 
** displays category
 
** displays category
|| needs three args
+
| needs three args
 
|-
 
|-
| курсовое  
+
| курсовое
 +
 
 
* 1,2,3...
 
* 1,2,3...
** боезапас
+
** боезапас
** код
+
** код
** количество
+
** количество
** название
+
** название
 
** скорострельность
 
** скорострельность
|| offensive guns for planes  
+
| offensive guns for planes
 +
 
 
* gun1, gun2, gun3
 
* gun1, gun2, gun3
** total ammunition(all guns combined)
+
** total ammunition(all guns combined)
** code name of guns
+
** code name of guns
** number of guns
+
** number of guns
** name
+
** name
 
** RoF(rounds per minute per gun)
 
** RoF(rounds per minute per gun)
|| needs 3 args
+
| needs 3 args
 
|-
 
|-
| название || name ||  
+
| название || name ||
 
|-
 
|-
| оборонительное  
+
| оборонительное
 +
 
 
* 1,2,3...
 
* 1,2,3...
** боезапас
+
** боезапас
** код
+
** код
** количество
+
** количество
** название
+
** название
** орудия
+
** орудия
 
** скорострельность
 
** скорострельность
|| defensive guns  
+
| defensive guns
 +
 
 
* turret1, turret2, turret3...
 
* turret1, turret2, turret3...
** total ammunition of turret
+
** total ammunition of turret
** code name of guns
+
** code name of guns
** number of turrets
+
** number of turrets
** name
+
** name
** # of guns in turret
+
** # of guns in turret
 
** RoF(rounds per minute per gun)
 
** RoF(rounds per minute per gun)
|| needs at least 3 args
+
| needs at least 3 args
 
|-
 
|-
| опыткоэф || RP modifier ||  
+
| опыткоэф || RP modifier ||
 
|-
 
|-
| орудие  
+
| орудие
 +
 
 
* 1,2,3...
 
* 1,2,3...
** боезапас
+
** боезапас
** дальность
+
** дальность
** калибр
+
** калибр
** код
+
** код
** количество
+
** количество
** название
+
** название
** обойма
+
** обойма
** скорострельность
+
** скорострельность
** скорость
+
** скорость
** стабилизатор
+
** стабилизатор
 
** увн
 
** увн
*** макс
+
*** макс
*** мин
+
*** мин
 
** угн
 
** угн
*** макс
+
*** макс
 
*** мин
 
*** мин
|| tank guns
+
| tank guns
 +
 
 
* gun1, gun2, gun3
 
* gun1, gun2, gun3
** total ammo
+
** total ammo
** range???
+
** range???
** caliber
+
** caliber
** code name of gun
+
** code name of gun
** number of shells in belt
+
** # of guns
** # of guns
+
** name of gun
** name of gun
+
** # of bullets per magazine
** # of bullets per magazine
+
** RoF(rounds per minute per gun)
** RoF(rounds per minute per gun)
+
** muzzle velocity?
** muzzle velocity?
+
** stabilizer
** stabilizer
+
** vertical guidance
** vertical guidance
+
*** max
*** max
 
 
*** min
 
*** min
 
** horizontal guidance
 
** horizontal guidance
*** max
+
*** max
 
*** min
 
*** min
 
  || needs 3 or more args
 
  || needs 3 or more args
 
|-
 
|-
| передачи  
+
| передачи
* вперед
+
 
 +
* вперед
 
* назад
 
* назад
|| # of transmission gears  
+
| # of transmission gears
 +
 
 
* forwards
 
* forwards
 
* backwards
 
* backwards
|| needs 2 args
+
| needs 2 args
 
|-
 
|-
| подвесное  
+
| подвесное
 +
 
 
* 1,2,3...
 
* 1,2,3...
 
** 1,2,3...
 
** 1,2,3...
*** количество
+
*** количество
 
*** название
 
*** название
|| payloads  
+
| payloads
 +
 
 
* payload1, payload2, payload3...
 
* payload1, payload2, payload3...
 
** armament1, armament2, armament3...
 
** armament1, armament2, armament3...
 
*** number of armament
 
*** number of armament
 
*** name
 
*** name
|| needs at least 3 args for rockets, bombs, and torpedoes
+
| needs at least 3 args for rockets, bombs, and torpedoes
 
|-
 
|-
 
| потолок || max altitude || in meters
 
| потолок || max altitude || in meters
 
|-
 
|-
| разрушение  
+
| разрушение
* конструкции
+
 
 +
* конструкции
 
* шасси
 
* шасси
|| destruction of
+
| destruction of
 +
 
 
* wings(and aircraft)
 
* wings(and aircraft)
 
* gear
 
* gear
|| in km/h
+
| in km/h
 
|-
 
|-
| ранг  
+
| ранг
 +
 
 
* значение
 
* значение
|| rank  
+
| rank
 +
 
 
* rank in numbers
 
* rank in numbers
|| in roman numerals
+
| in roman numerals
 
|-
 
|-
| ремонт  
+
| ремонт
 +
 
 
* аб
 
* аб
** макс
+
** макс
** мин
+
** мин
* рб
+
* рб
** макс
+
** макс
** мин
+
** мин
 
* сб
 
* сб
** макс
+
** макс
** мин
+
** мин
|| repair cost  
+
| repair cost
 +
 
 
* AB
 
* AB
 
** max
 
** max
Line 495: Line 644:
 
** max
 
** max
 
** min
 
** min
|| defaults to RB and maximum if not specified
+
| defaults to RB and maximum if not specified
 
|-
 
|-
 
| сваливание || stall speed || in km/h
 
| сваливание || stall speed || in km/h
 
|-
 
|-
| статья || wiki article title ||  
+
| статья || wiki article title ||
 
|-
 
|-
| страна || country ||  
+
| страна || country ||
 
|-
 
|-
 
| тип || type of vehicle || 1=plane, 2=tank, 3=ship, 4=heli
 
| тип || type of vehicle || 1=plane, 2=tank, 3=ship, 4=heli
Line 507: Line 656:
 
| цена || cost to buy || in SL
 
| цена || cost to buy || in SL
 
|-
 
|-
| штаторудие  
+
| штаторудие
 +
 
 
* 1,2,3...
 
* 1,2,3...
** боезапас
+
** боезапас
** количество
+
** количество
** название
+
** название
** обойма
+
** обойма
** орудия
+
** орудия
** скорострельность
+
** скорострельность
 
** тип
 
** тип
|| ship guns  
+
| ship guns
 +
 
 
* gun1, gun2, gun3...
 
* gun1, gun2, gun3...
** total ammunition of turret
+
** total ammunition of turret
** number of turrets
+
** number of turrets
** name
+
** name
** # of bullets per magazine
+
** # of bullets per magazine
** # of guns in turret
+
** # of guns in turret
** RoF(rounds per minute per gun)
+
** RoF(rounds per minute per gun)
 
** gun type(primary, secondary, machinegun, torpedo
 
** gun type(primary, secondary, machinegun, torpedo
|| needs at least 2 args
+
| needs at least 2 args
 
|-
 
|-
| экипаж || # of crew members ||  
+
| экипаж || # of crew members ||
 
|-
 
|-
 
| эксперты || expert crew price || in SL
 
| эксперты || expert crew price || in SL
 
|}
 
|}

Latest revision as of 09:36, 16 April 2020

Using {{#unit}} / {{specs}}

#unit is structured as {{#unit: "VehicleCode" | "arg1" | "arg2" | "arg3" | "arg4"}}

{{Specs}} functions identically to #unit with the caveat that it must be used after {{Specs-Card}} and returns values based on the vehicle inputted into Specs-Card.

It is structured as {{Specs | "arg1" | "arg2" | "arg3" | "arg4"}}

Each list indent is the next argument in the template. Arguments are not case-sensitive.

English arguments

General

Argument Description Details
article
  • (optional) ru
Page/Article name
  • Russian article name
name Full name
pseudonym Shortened name
image Name to be used in https://encyclopedia.warthunder.com/images/[IMAGE].png
country Country
type Vehicle type
  • 1 = plane
  • 2 = tank
  • 3 = ship
  • 4 = heli
class
  • 1, 2, 3...
    • (optional) code
Vehicle class
  • Class1, class2...
    • Class code
rank
  • (optional) value
Rank in roman numerals
  • in numbers
br
  • AB
  • (optional) RB
  • SB
BR per mode defaults to RB
premium Is a premium vehicle?
  • 0 = no
  • 1 = yes
gift Is a gift vehicle?
  • 0 = no
  • 1 = yes
squadron Is a squadron vehicle?
  • 0 = no
  • 1 = yes
research
  • (optional) value
Research cost in RP
  • un-delimited
price
  • currency
  • (optional) value
Purchase cost in SL
  • S = Sl icon.png
  • Z = Ge icon.png
crew
  • basic
  • experts
  • aces
Number of crew
  • Basic crew cost
  • Expert crew cost
  • Ace crew cost
 
  • in SL
  • in SL
  • in GE
repair
  • ab
    • max
    • min
  • rb
    • max
    • min
  • sb
    • max
    • min
Repair cost
  • AB
    • max
    • min
  • RB
    • max
    • min
  • SB
    • max
    • min
defaults to RB and maximum
expmul RP modifier in percent
коэф_львы
  • ab
  • rb
  • sb
SL modifier in percent
  • defaults to RB

Aircraft

Argument Description Details
mass
  • empty
Take-off weight
  • Empty weight
in metric tons
engine
  • amount
  • type
  • cooling
Engine name
  • Number of engines
  • Engine type
  • Cooling type (air or water)
ceiling Max altitude in metres
destruction
  • body
  • gear
Rip speed of
  • wings
  • gear
in km/h
offensive
  • 1, 2, 3...
    • ammunition
    • amount
    • caliber
    • code
    • firerate
 
  • Gun1 name, gun2 name...
    • Total ammunition
    • Number of guns
    • Calibre
    • Gun code
    • Rate of fire
Offensive guns




  • in mm


  • in rounds per minute per gun
defensive
  • 1, 2, 3...
    • ammunition
    • amount
    • caliber
    • code
    • guns
    • firerate
 
  • Gun name in turret1, turret2...
    • Total ammunition of turret
    • Number of turrets
    • Calibre
    • Guns code
    • Number of guns in turret
    • Rate of fire
Defensive (turreted) guns




  • in mm



  • in rounds per minute per gun
external
  • 1, 2, 3...
    • 1, 2, 3...
      • amount
Suspended ordnance
  • Preset1, preset2, preset3...
    • Name of armament1, armament2, armament3...
      • Number of armament

Ground vehicles

Argument Description Details
mass Weight in metric tons. Includes add-on armour.
cannon
  • 1, 2, 3...
    • ammunition
    • amount
    • caliber
    • code
    • firerate
    • mag
    • (optional) name
    • range
    • speed
    • stabilizer
    • угн
      • max
      • min
    • увн
      • max
      • min
Tank guns
  • gun1, gun2, gun3, etc
    • Total ammunition
    • Number of guns
    • Calibre
    • Gun code
    • Rate of fire
    • Number of bullets per magazine
    • Gun name
    • Range
    • The speed of the projectile
    • Gun stabilization type
    • Horizontal guidance
      • max
      • min
    • Vertical guidance
      • max
      • min
 



  • in rounds per minute per gun
  • only available for guns that use a belt-loading system
  • default
  • in metres
  • only available for self-propelled projectiles (e.g. missiles and rockets)


  • in degrees
speed
  • forward
    • ab
    • rb
  • back
    • ab
    • rb
Maximum speed
  • Forwards
    • AB
    • RB
  • Backwards
    • AB
    • RB
Defaults to RB
gears
  • forward
  • back
Number of transmission gears
  • Forwards
  • Reverse

Fleet

Argument Description Details
displacement in tons
speed
  • forward
    • ab
    • rb
  • back
    • ab
    • rb
Maximum speed
  • Forwards
    • AB
    • RB
  • Backwards
    • AB
    • RB
Defaults to RB
section Number of sections
armour
  • turret
    • front
    • side
    • back
  • citadel
    • front
    • side
    • back
  • hull
    • thickness
    • material
  • superstructure
    • thickness
    • material
Armour thickness
  • Main armament turrets
    • Front
    • Sides
    • Back
  • Citadel
    • Front
    • Sides
    • Back
  • Hull
    • Thickness
    • Material
  • Superstructure
    • Thickness
    • Material
in mm
weapon
  • main
    • количество
    • 1, 2, 3...
      • ammunition
      • amount
      • caliber
      • code
      • firerate
      • guns
      • mag
      • (optional) name
      • увн
        • max
        • min
  • secondary
    • same as primary
  • antiaircraft
    • same as primary
  • дополнительное
    • 1, 2, 3...
      • 1, 2, 3...
        • name

  • Primary armaments
    • Number of distinct primary weapons
    • Weapon 1, 2, 3, etc
      • Total ammunition
      • Number of turrets
      • Calibre
      • Gun code
      • Rate of fire
      • Number of guns
      • Belt capacity
      • Weapon name
      • Vertical guidance
        • max
        • min
  • Secondary armaments


  • Anti-aircraft armaments


  • Additional armaments
    • Preset1, 2, 3, etc
      • Weapon1, 2, 3, etc
        • Name

Russian arguments

Argument Description Details
акционная premium 0=no 1=yes
асы ace crew price in GE
базовая basic crew price in SL
бр
  • аб
  • рб
  • сб
BR
  • AB
  • RB
  • SB
defaults to RB
вес
  • пустой
  • полный
weight
  • Empty weight
  • Maximum Weight
in metric tons Defaults to takeoff
вираж
  • аб
  • рб
  • сб
turn time in
  • AB
  • RB
  • SB
in seconds
двигатель
  • количество
  • тип
  • сод
  • название
engine name
  • number of engines
  • engine type
  • cooling type(air or water)
  • name
допорудие
  • 1,2,3...
    • 1,2,3...
      • название
      • боезапас
additional guns
  • gunoption1, gunoption2, gunoption3...?
    • gun1, gun2, gun3?
      • name
      • total ammunition(all guns combined)
needs 4 args. Currently nonfunctional
изображение image name https://encyclopedia.warthunder.com/images/NAME.png
исследование research cost in RP
класс
  • 1,2,3...
    • код
vehicle category
  • category1, category2...
    • displays category
needs three args
курсовое
  • 1,2,3...
    • боезапас
    • код
    • количество
    • название
    • скорострельность
offensive guns for planes
  • gun1, gun2, gun3
    • total ammunition(all guns combined)
    • code name of guns
    • number of guns
    • name
    • RoF(rounds per minute per gun)
needs 3 args
название name
оборонительное
  • 1,2,3...
    • боезапас
    • код
    • количество
    • название
    • орудия
    • скорострельность
defensive guns
  • turret1, turret2, turret3...
    • total ammunition of turret
    • code name of guns
    • number of turrets
    • name
    • # of guns in turret
    • RoF(rounds per minute per gun)
needs at least 3 args
опыткоэф RP modifier
орудие
  • 1,2,3...
    • боезапас
    • дальность
    • калибр
    • код
    • количество
    • название
    • обойма
    • скорострельность
    • скорость
    • стабилизатор
    • увн
      • макс
      • мин
    • угн
      • макс
      • мин
tank guns
  • gun1, gun2, gun3
    • total ammo
    • range???
    • caliber
    • code name of gun
    • # of guns
    • name of gun
    • # of bullets per magazine
    • RoF(rounds per minute per gun)
    • muzzle velocity?
    • stabilizer
    • vertical guidance
      • max
      • min
    • horizontal guidance
      • max
      • min
needs 3 or more args
передачи
  • вперед
  • назад
# of transmission gears
  • forwards
  • backwards
needs 2 args
подвесное
  • 1,2,3...
    • 1,2,3...
      • количество
      • название
payloads
  • payload1, payload2, payload3...
    • armament1, armament2, armament3...
      • number of armament
      • name
needs at least 3 args for rockets, bombs, and torpedoes
потолок max altitude in meters
разрушение
  • конструкции
  • шасси
destruction of
  • wings(and aircraft)
  • gear
in km/h
ранг
  • значение
rank
  • rank in numbers
in roman numerals
ремонт
  • аб
    • макс
    • мин
  • рб
    • макс
    • мин
  • сб
    • макс
    • мин
repair cost
  • AB
    • max
    • min
  • RB
    • max
    • min
  • SB
    • max
    • min
defaults to RB and maximum if not specified
сваливание stall speed in km/h
статья wiki article title
страна country
тип type of vehicle 1=plane, 2=tank, 3=ship, 4=heli
цена cost to buy in SL
штаторудие
  • 1,2,3...
    • боезапас
    • количество
    • название
    • обойма
    • орудия
    • скорострельность
    • тип
ship guns
  • gun1, gun2, gun3...
    • total ammunition of turret
    • number of turrets
    • name
    • # of bullets per magazine
    • # of guns in turret
    • RoF(rounds per minute per gun)
    • gun type(primary, secondary, machinegun, torpedo
needs at least 2 args
экипаж # of crew members
эксперты expert crew price in SL