Template:Infobox hero: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) moved release date up |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<templatestyles src="Infobox hero/styles.css" /> | <templatestyles src="Infobox hero/styles.css" /> | ||
<templatestyles src="Infobox hero/themes.css" /> | <templatestyles src="Infobox hero/themes.css" /> | ||
<includeonly | <includeonly>{{#vardefine:provided_key|{{{key|}}}}}{{#vardefine:hero_key|{{#ifeq: {{#invoke:Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#var:provided_key}}|{{#ifeq:{{#invoke:Infobox_hero|en_is_hero_key|{{#var:provided_key}}}}|true|{{#invoke:HeroData|get_hero_key|{{#var:provided_key}}}}|hero_targetdummy}}}}}}{{#vardefine:hero_en|{{#invoke:Lang|get_string|{{#var:hero_key}}|lang_code_override=en}} }}{{#vardefine:hero_en_herodata|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|Name}} }}{{#vardefine:hero_lang|{{#invoke:Lang|get_string|{{#var:hero_key}}}} }}{{#vardefine:theme-logo-height| {{#invoke:Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}{{#vardefine:theme-bg-image| {{#invoke:Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}{{#vardefine:theme-bg-height| {{#invoke:Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-height}} }}{{#vardefine:show_logo|{{#ifeq:{{{no_name|}}}|true|false|{{{show_logo|true}}}}}}}{{#vardefine:show_hero_tags|{{#ifeq:{{{no_summary|}}}|true|false|{{{show_hero_tags|true}}}}}}}{{#vardefine:show_icon|{{#ifeq:{{{no_icon|}}}|true|false|{{{show_icon|true}}}}}}}{{#vardefine:quotemark|"}}{{#vardefine:name_base|{{{name|{{#var:hero_en}}}}}}}{{#vardefine:name_display|{{{name|{{#var:hero_lang}}}}}}}{{#vardefine:icon_file|{{{icon|{{#var:hero_en}}}}}.png}}{{#vardefine:card_file|{{{card|{{#var:hero_en_herodata}} card.png}}}}}{{#vardefine:show_info|{{#if:{{{release_date|}}}{{{voice_actor|}}}{{{pronouns|}}}{{{codenames|}}}|1|0}}}}{{#vardefine:val_pellets|{{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}}}}{{#vardefine:val_burst|{{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}}}}{{#vardefine:val_crit_bonus|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CritDamageBonusPercent|3}}}}{{#vardefine:val_stamina|{{{stamina|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|Stamina|2}}}}}}}{{#vardefine:val_dash_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|GroundDashSpeed|3}}}}{{#vardefine:has_crit_reduction|{{#if:{{{crit_reduction|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|CritDamageReceivedPercent}}|1|0}}}}{{#vardefine:val_crit_reduction|{{{crit_reduction|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CritDamageReceivedPercent|3}}}}}}}{{#vardefine:has_bullet_resist|{{#if:{{{bullet_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|BulletResist}}|1|0}}}}{{#vardefine:val_bullet_resist|{{{bullet_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletResist|3}}}}}}}{{#vardefine:has_spirit_resist|{{#if:{{{spirit_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|TechResist}}|1|0}}}}{{#vardefine:val_spirit_resist|{{{spirit_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|TechResist|3}}}}}}}{{#vardefine:has_melee_resist|{{#if:{{{melee_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|MeleeResist}}|1|0}}}}{{#vardefine:val_melee_resist|{{{melee_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MeleeResist|3}}}}}}}{{#vardefine:has_debuff_resist|{{#if:{{{debuff_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|DebuffResist}}|1|0}}}}{{#vardefine:val_debuff_resist|{{{debuff_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|DebuffResist|3}}}}}}}{{#vardefine:has_bullet_lifesteal|{{#if:{{{bullet_lifesteal|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|BulletLifesteal}}|1|0}}}}{{#vardefine:val_bullet_lifesteal|{{{bullet_lifesteal|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletLifesteal|3}}}}}}}{{#vardefine:has_spirit_lifesteal|{{#if:{{{spirit_lifesteal|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|SpiritLifesteal}}|1|0}}}}{{#vardefine:val_spirit_lifesteal|{{{spirit_lifesteal|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|SpiritLifesteal|3}}}}}}}<div class={{#var:quotemark}}infobox-h {{#var:hero_key}}{{#var:quotemark}}><div class="infobox-h-background">[[File:{{#var:theme-bg-image}}|{{#var:theme-bg-height}}|right|link=|class=notpageimage]]</div>{| class="infobox-h-content" | ||
! colspan="2" class="infobox-h-title" {{#if:{{{name_font_size|}}}|style{{=}}"font-size: {{{name_font_size|25px}}};"}} |<div class="infobox-h-title-hero"> | |||
}}}} | |||
{| class="infobox-h-content" | |||
! colspan="2" class="infobox-h-title" {{#if:{{{name_font_size|}}}|style{{=}}"font-size: {{{name_font_size|25px}}};"}} | | |||
<div class="infobox-h-title-hero"> | |||
<div class="infobox-h-title-hero-left"></div> | <div class="infobox-h-title-hero-left"></div> | ||
<div class="infobox-h-title-hero-middle">{{If lang | <div class="infobox-h-title-hero-middle">{{If lang | ||
|{{#ifexist:File: | |{{#ifexist:File:{{#var:name_base}}_name.svg|{{Template:Icon/White|[[File:{{#var:name_base}}_name.svg|{{#var:theme-logo-height}}|class=notpageimage]]}}|{{#var:name_display}}}} | ||
|{{#ifexist:File: | |{{#ifexist:File:{{#var:name_base}}_name_{{#invoke:Lang|get_lang_code}}.svg|{{Template:Icon/White|[[File:{{#var:name_base}}_name_{{#invoke:Lang|get_lang_code}}.svg|{{#var:theme-logo-height}}|class=notpageimage]]}}|{{#var:name_display}}}} | ||
|{{#var:name_display}}}}</div> | |||
<div class="infobox-h-title-hero-right"><div> | <div class="infobox-h-title-hero-right"><div> | ||
{{#ifeq:{{#var:show_icon}}|true|{{#ifexist:File: | {{#ifeq:{{#var:show_icon}}|true|{{#ifexist:File:{{#var:icon_file}}|<div class="infobox-h-title-hero-tornbox"></div> | ||
<div class="infobox-h-title-hero-icon">[[File: | <div class="infobox-h-title-hero-icon">[[File:{{#var:icon_file}}|center|35px|class=notpageimage]]</div></div> | ||
</div>|}}}} | </div>|}}}}|- | ||
! colspan="2" class="infobox-h-image" |<div>{{#ifexist: File:{{#var:card_file}}|[[File:{{#var:card_file}}|150px|alt={{{BASEPAGENAME}}}]]|[[File:Dummy card.png|150px|alt={{{BASEPAGENAME}}}]]}}</div>{{#ifeq:{{#var:show_hero_tags}}|true|{{#ifeq:{{#invoke:Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true| | |||
|- | |||
! colspan="2" class="infobox-h-image" |<div>{{#ifexist: File: | |||
{{#ifeq:{{#var:show_hero_tags}}|true|{{#ifeq:{{#invoke:Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true| | |||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" class="infobox-h-herotags-row" {{!}} | {{!}} colspan="2" class="infobox-h-herotags-row" {{!}} | ||
| Line 65: | Line 20: | ||
<div class="infobox-h-herotag-pill">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|3}}</div> | <div class="infobox-h-herotag-pill">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|3}}</div> | ||
</div> | </div> | ||
|}}|}} | |}}|}}|- | ||
|- | |||
! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-weapon" | | ! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-weapon" | | ||
{| class="mw-collapsible infobox-h-subsection-child" | {| class="mw-collapsible infobox-h-subsection-child" | ||
|+ class="infobox-h-dropdown-header {{#ifeq:{{If_lang}}|/ru|infobox-h-dropdown-header-overflow}}" | [[Stats{{If_lang}}#Weapon|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Weapon}}</span>]] | |+ class="infobox-h-dropdown-header {{#ifeq:{{If_lang}}|/ru|infobox-h-dropdown-header-overflow}}" | [[Stats{{If_lang}}#Weapon|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Weapon}}</span>]] | ||
|- | |-| [[Damage per second{{If_lang}}|<span>{{#invoke:Lang|get_string|DPS_label}}</span>]]: | ||
| [[Damage per second{{If_lang}}|<span>{{#invoke:Lang|get_string|DPS_label}}</span>]]: | |||
| {{Icon/Brown|[[File:Damage.png|20px|link=Damage per second{{If_lang}}]]|{{{dps|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|DPS|3}}}}}}} | | {{Icon/Brown|[[File:Damage.png|20px|link=Damage per second{{If_lang}}]]|{{{dps|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|DPS|3}}}}}}} | ||
|- | |-| [[Bullet Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletDamage}}</span>]]: | ||
| [[Bullet Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletDamage}}</span>]]: | |||
| style="padding-right: 5px;" | {{Icon/Brown|[[File:Bullet damage.png|20px|link=Bullet Damage{{If_lang}}]]|{{{bullet_damage|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletDamage}}</span>}} | | style="padding-right: 5px;" | {{Icon/Brown|[[File:Bullet damage.png|20px|link=Bullet Damage{{If_lang}}]]|{{{bullet_damage|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletDamage}}</span>}} | ||
|- | |- | ||
{{#ifexpr: {{#var:val_pellets}} > 1 | | |||
{{#ifexpr: | |||
{{!}} [[Damage per second{{If_lang}}|<span>{{#invoke:Lang|get_string|BonusPelletsPerShot_label}}</span>]]: | {{!}} [[Damage per second{{If_lang}}|<span>{{#invoke:Lang|get_string|BonusPelletsPerShot_label}}</span>]]: | ||
{{!}} {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]] | {{!}} {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]]|{{#var:val_pellets}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletsPerShot}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletsPerShot}}</span>}}}} | ||
|- | |- | ||
{{#ifexpr: {{#var:val_burst}} > 1 | | |||
{{#ifexpr: | |||
{{!}} [[Damage per second{{If_lang}}|<span>{{#invoke:Dictionary|translate|BulletsPerBurst}}</span>]]: | {{!}} [[Damage per second{{If_lang}}|<span>{{#invoke:Dictionary|translate|BulletsPerBurst}}</span>]]: | ||
{{!}} {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]] | {{!}} {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]]|{{#var:val_burst}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletsPerBurst}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletsPerBurst}}</span>}}}} | ||
|- | |- | ||
| [[Ammo{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_ClipSizeBonus}}</span>]]: | | [[Ammo{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_ClipSizeBonus}}</span>]]: | ||
| {{Icon/Brown|[[File:Clip size icon.png|20px|link=Ammo{{If_lang}}]]|{{{ammo|{{#ifeq: {{{no_ammo|}}}|true|N/A|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ClipSize|3}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|ClipSize}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|ClipSize}}</span>}}}}}}} | | {{Icon/Brown|[[File:Clip size icon.png|20px|link=Ammo{{If_lang}}]]|{{{ammo|{{#ifeq: {{{no_ammo|}}}|true|N/A|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ClipSize|3}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|ClipSize}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|ClipSize}}</span>}}}}}}} | ||
|- | |- | ||
| [[Fire_Rate{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_RoundsPerSecond}}</span>]]: | | [[Fire_Rate{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_RoundsPerSecond}}</span>]]: | ||
| {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]]|{{{bullets_per_sec|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|RoundsPerSecond|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|RoundsPerSecond}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|RoundsPerSecond}}</span>}} | | {{Icon/Brown|[[File:Bullets per sec icon.png|20px|link=Fire Rate{{If_lang}}]]|{{{bullets_per_sec|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|RoundsPerSecond|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|RoundsPerSecond}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|RoundsPerSecond}}</span>}} | ||
|- | |- | ||
| [[Reload Time{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_ReloadTime}}</span>]]: | | [[Reload Time{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_ReloadTime}}</span>]]: | ||
| {{Icon/Brown|[[File:AttributeIconReloadTime.png|20px|link=Reload Time{{If_lang}}]]|{{{reload_time|{{#ifeq: {{{no_ammo|}}}|true|N/A|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadTime|3}}s}}}}}}} | | {{Icon/Brown|[[File:AttributeIconReloadTime.png|20px|link=Reload Time{{If_lang}}]]|{{{reload_time|{{#ifeq: {{{no_ammo|}}}|true|N/A|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadTime|3}}s}}}}}}} | ||
|- | |- | ||
| [[Bullet Velocity{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletSpeed}}</span>]]: | | [[Bullet Velocity{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletSpeed}}</span>]]: | ||
| {{Icon/Brown|[[File:AttributeIconBulletSpeed.png|20px|link=Bullet Velocity{{If_lang}}]]|{{{bullet_velocity|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletSpeed|3}}}}}m/s}} | | {{Icon/Brown|[[File:AttributeIconBulletSpeed.png|20px|link=Bullet Velocity{{If_lang}}]]|{{{bullet_velocity|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletSpeed|3}}}}}m/s}} | ||
|- | |- | ||
| [[Melee Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_LightMeleeDamage}}</span>]]: | | [[Melee Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_LightMeleeDamage}}</span>]]: | ||
| style="padding-right: 5px;"| {{Icon/Brown|[[File:Melee damage.png|20px|link=Melee Damage{{If_lang}}]]|{{{light_melee|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|LightMeleeDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|LightMeleeDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|LightMeleeDamage}}</span>}} | | style="padding-right: 5px;"| {{Icon/Brown|[[File:Melee damage.png|20px|link=Melee Damage{{If_lang}}]]|{{{light_melee|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|LightMeleeDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|LightMeleeDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|LightMeleeDamage}}</span>}} | ||
|- | |- | ||
| [[Melee Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HeavyMeleeDamage}}</span>]]: | | [[Melee Damage{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HeavyMeleeDamage}}</span>]]: | ||
| style="padding-right: 5px;"| {{Icon/Brown|[[File:Melee damage.png|20px|link=Melee Damage{{If_lang}}]]|{{{heavy_melee|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HeavyMeleeDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|HeavyMeleeDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|HeavyMeleeDamage}}</span>}} | | style="padding-right: 5px;"| {{Icon/Brown|[[File:Melee damage.png|20px|link=Melee Damage{{If_lang}}]]|{{{heavy_melee|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HeavyMeleeDamage|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|HeavyMeleeDamage}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|HeavyMeleeDamage}}</span>}} | ||
|- | |- | ||
|- | |- | ||
{{#if: {{{max_range|}}} | | {{#if: {{{max_range|}}} | | ||
{{!}} [[Falloff_Range{{If_lang}}|<span>Max Range</span>]]: | {{!}} [[Falloff_Range{{If_lang}}|<span>Max Range</span>]]: | ||
{{!}} {{Icon/Brown||{{{max_range|}}}}}}} | {{!}} {{Icon/Brown||{{{max_range|}}}}}}} | ||
|- | |- | ||
{{#ifexpr: {{#var:val_crit_bonus}} != 0 | | |||
{{#ifexpr: | |||
{{!}} [[Weapon Damage{{If_lang}}#Crit_Multiplier|<span>{{#invoke:Lang|get_string|StatDesc_CritDamageBonusScale}}</span>]]: | {{!}} [[Weapon Damage{{If_lang}}#Crit_Multiplier|<span>{{#invoke:Lang|get_string|StatDesc_CritDamageBonusScale}}</span>]]: | ||
{{!}} {{Icon/Brown|[[File:Crit reduction.png|20px|link=Weapon Damage#Crit_Multiplier]] | {{!}} {{Icon/Brown|[[File:Crit reduction.png|20px|link=Weapon Damage#Crit_Multiplier]]|{{#var:val_crit_bonus}}%}}}} | ||
|} | |} | ||
|- | |- | ||
! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-vitality" | | ! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-vitality" | | ||
| Line 133: | Line 70: | ||
|+ class="infobox-h-dropdown-header {{#ifeq:{{If_lang}}|/ru|infobox-h-dropdown-header-overflow}}" | [[Stats#Vitality|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Vitality}}</span>]] | |+ class="infobox-h-dropdown-header {{#ifeq:{{If_lang}}|/ru|infobox-h-dropdown-header-overflow}}" | [[Stats#Vitality|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Vitality}}</span>]] | ||
|- | |- | ||
---- Health ----> | |||
| {{#ifeq:{{#invoke:Infobox_hero|hero_has_scalars|{{#var:hero_key}}|MaxHealth}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Health{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthAttribute}}</span>]]: | | {{#ifeq:{{#invoke:Infobox_hero|hero_has_scalars|{{#var:hero_key}}|MaxHealth}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Health{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthAttribute}}</span>]]: | ||
| {{Icon/Green|[[File:Health.png|20px|link=Health{{If_lang}}]]|{{{max_health|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxHealth|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxHealth}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxHealth}}</span>}} | | {{Icon/Green|[[File:Health.png|20px|link=Health{{If_lang}}]]|{{{max_health|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxHealth|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxHealth}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxHealth}}</span>}} | ||
|- | |- | ||
| [[Health Regen{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthRegen}}</span>]]: | | [[Health Regen{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthRegen}}</span>]]: | ||
| {{Icon/Green|[[File:Health regen.png|20px|link=Health Regen{{If_lang}}]]|{{{health_regen|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BaseHealthRegen|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BaseHealthRegen}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BaseHealthRegen}}</span>}} | | {{Icon/Green|[[File:Health regen.png|20px|link=Health Regen{{If_lang}}]]|{{{health_regen|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BaseHealthRegen|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BaseHealthRegen}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BaseHealthRegen}}</span>}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_crit_reduction}} | 1 | | |||
{{# | |||
{{!}}[[Damage Resistance{{If_lang}}#Crit_Reduction|<span>{{#invoke:Lang|get_string|StatDesc_CritDamageReceivedScale}}</span>]]: | {{!}}[[Damage Resistance{{If_lang}}#Crit_Reduction|<span>{{#invoke:Lang|get_string|StatDesc_CritDamageReceivedScale}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:Crit reduction.png|20px|link=Damage Resistance{{If_lang}}#Crit_Reduction]] | {{!}}{{Icon/Green|[[File:Crit reduction.png|20px|link=Damage Resistance{{If_lang}}#Crit_Reduction]]|{{#var:val_crit_reduction}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|CritDamageReceivedPercent}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|CritDamageReceivedPercent}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_bullet_resist}} | 1 | | |||
{{# | |||
{{!}}[[Damage Resistance{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletArmorDamageReduction}}</span>]]: | {{!}}[[Damage Resistance{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_BulletArmorDamageReduction}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:Bullet Armor.png|20px|link=Bullet Resist{{If_lang}}]] | {{!}}{{Icon/Green|[[File:Bullet Armor.png|20px|link=Bullet Resist{{If_lang}}]]|{{#var:val_bullet_resist}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletResist}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletResist}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_spirit_resist}} | 1 | | |||
{{# | |||
{{!}}[[Damage Resistance{{If_lang}}#Spirit_Resist|<span>{{#invoke:Lang|get_string|StatDesc_TechArmorDamageReduction}}</span>]]: | {{!}}[[Damage Resistance{{If_lang}}#Spirit_Resist|<span>{{#invoke:Lang|get_string|StatDesc_TechArmorDamageReduction}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:Spirit Armor.png|20px|link=Damage Resistance{{If_lang}}#Spirit_Resist]] | {{!}}{{Icon/Green|[[File:Spirit Armor.png|20px|link=Damage Resistance{{If_lang}}#Spirit_Resist]]|{{#var:val_spirit_resist}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|TechResist}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|TechResist}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_melee_resist}} | 1 | | |||
{{# | |||
{{!}}[[Damage Resistance{{If_lang}}#Melee Resist|<span>{{#invoke:Lang|get_string|StatDesc_MeleeResist}}</span>]]: | {{!}}[[Damage Resistance{{If_lang}}#Melee Resist|<span>{{#invoke:Lang|get_string|StatDesc_MeleeResist}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:Melee damage.png|20px|link=Damage Resistance{{If_lang}}#Melee Resist]] | {{!}}{{Icon/Green|[[File:Melee damage.png|20px|link=Damage Resistance{{If_lang}}#Melee Resist]]|{{#var:val_melee_resist}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MeleeResist}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MeleeResist}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_debuff_resist}} | 1 | | |||
{{# | |||
{{!}}[[Debuff Resist|<span>{{#invoke:Lang|get_string|StatDesc_DebuffResist}}</span>]]: | {{!}}[[Debuff Resist|<span>{{#invoke:Lang|get_string|StatDesc_DebuffResist}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:Spirit Armor.png|20px|link=Damage Resistance{{If_lang}}#Spirit_Resist]] | {{!}}{{Icon/Green|[[File:Spirit Armor.png|20px|link=Damage Resistance{{If_lang}}#Spirit_Resist]]|{{#var:val_debuff_resist}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|DebuffResist}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|DebuffResist}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_bullet_lifesteal}} | 1 | | |||
{{# | |||
{{!}}[[Lifesteal{{If_lang}}#Bullet Lifesteal|<span>{{#invoke:Lang|get_string|StatDesc_BulletLifesteal}}</span>]]: | {{!}}[[Lifesteal{{If_lang}}#Bullet Lifesteal|<span>{{#invoke:Lang|get_string|StatDesc_BulletLifesteal}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:AttributeIconBulletLifesteal.png|20px|link=Lifesteal{{If_lang}}#Bullet Lifesteal]] | {{!}}{{Icon/Green|[[File:AttributeIconBulletLifesteal.png|20px|link=Lifesteal{{If_lang}}#Bullet Lifesteal]]|{{#var:val_bullet_lifesteal}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|BulletLifesteal}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|BulletLifesteal}}</span>}}}} | ||
|- | |- | ||
{{#ifeq: {{#var:has_spirit_lifesteal}} | 1 | | |||
{{# | |||
{{!}}[[Lifesteal{{If_lang}}#Spirit Lifesteal|<span>{{#invoke:Lang|get_string|StatDesc_SpiritLifesteal}}</span>]]: | {{!}}[[Lifesteal{{If_lang}}#Spirit Lifesteal|<span>{{#invoke:Lang|get_string|StatDesc_SpiritLifesteal}}</span>]]: | ||
{{!}}{{Icon/Green|[[File:AttributeIconBulletLifesteal.png|20px|link=Lifesteal{{If_lang}}#Spirit Lifesteal]] | {{!}}{{Icon/Green|[[File:AttributeIconBulletLifesteal.png|20px|link=Lifesteal{{If_lang}}#Spirit Lifesteal]]|{{#var:val_spirit_lifesteal}}%<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|SpiritLifesteal}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|SpiritLifesteal}}</span>}}}} | ||
|- | |- | ||
| [[Move Speed{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_RunSpeed}}</span>]]: | | [[Move Speed{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_RunSpeed}}</span>]]: | ||
| {{Icon/Green|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxMoveSpeed|2}}}}}m/s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxMoveSpeed}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxMoveSpeed}}</span>}} | | {{Icon/Green|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxMoveSpeed|2}}}}}m/s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxMoveSpeed}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxMoveSpeed}}</span>}} | ||
|- | |- | ||
| [[Move Speed{{If_lang}}#Sprint|<span>{{#invoke:Lang|get_string|StatDesc_SprintSpeed}}</span>]]: | | [[Move Speed{{If_lang}}#Sprint|<span>{{#invoke:Lang|get_string|StatDesc_SprintSpeed}}</span>]]: | ||
| {{Icon/Green|[[File:Move speed sprint.png|20px|link=Move Speed#Sprint]]|{{{sprint_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|SprintSpeed|2}}}}}m/s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|SprintSpeed}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|SprintSpeed}}</span>}} | | {{Icon/Green|[[File:Move speed sprint.png|20px|link=Move Speed#Sprint]]|{{{sprint_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|SprintSpeed|2}}}}}m/s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|SprintSpeed}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|SprintSpeed}}</span>}} | ||
|- | |- | ||
| [[Stamina{{If_lang}}#Dash_Speed|<span>{{#invoke:Lang|get_string|DashSpeed_label}}</span>]]: | | [[Stamina{{If_lang}}#Dash_Speed|<span>{{#invoke:Lang|get_string|DashSpeed_label}}</span>]]: | ||
| {{Icon/Green|[[File:Springy_boots_icon.png|20px|link=Stamina#Dash_Speed]] | | {{Icon/Green|[[File:Springy_boots_icon.png|20px|link=Stamina#Dash_Speed]]|{{#var:val_dash_speed}}m/s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|GroundDashSpeed}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|GroundDashSpeed}}</span>}} | ||
|- | |- | ||
| [[Stamina{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_Stamina}}</span>]]: | | [[Stamina{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_Stamina}}</span>]]: | ||
| {{Icon/Green|[[File:Springy_boots_icon.png|20px|link=Stamina]] | | {{Icon/Green|[[File:Springy_boots_icon.png|20px|link=Stamina]]|{{#var:val_stamina}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|Stamina}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|Stamina}}</span>}} | ||
|- | |- | ||
| [[Stamina{{If_lang}}#Cooldown|<span>{{#invoke:Lang|get_string|StatDesc_StaminaCooldown}}</span>]]: | | [[Stamina{{If_lang}}#Cooldown|<span>{{#invoke:Lang|get_string|StatDesc_StaminaCooldown}}</span>]]: | ||
| {{Icon/Green|[[File:AttributeIconTechDuration.png|20px|link=Stamina#Cooldown]]|{{{stamina_cooldown|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|StaminaCooldown|2}}}}}s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|StaminaCooldown}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|StaminaCooldown}}</span>}} | | {{Icon/Green|[[File:AttributeIconTechDuration.png|20px|link=Stamina#Cooldown]]|{{{stamina_cooldown|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|StaminaCooldown|2}}}}}s<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|StaminaCooldown}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|StaminaCooldown}}</span>}} | ||
|} | |} | ||
|- | |- | ||
! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-spirit" | | ! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-spirit" | | ||
| Line 205: | Line 128: | ||
| {{#ifeq:{{#invoke:Infobox_hero|hero_has_scalars|{{#var:hero_key}}|TechPower}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Spirit Power{{If_lang}}|<span>{{#invoke:Lang|get_string|SpiritPower_label}}</span>]]: | | {{#ifeq:{{#invoke:Infobox_hero|hero_has_scalars|{{#var:hero_key}}|TechPower}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Spirit Power{{If_lang}}|<span>{{#invoke:Lang|get_string|SpiritPower_label}}</span>]]: | ||
| {{Icon/Purple|[[File:Spirit_icon_noborder.png|20px|link=Spirit Power{{If_lang}}]]|{{{spirit_power|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|TechPower|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|TechPower}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|TechPower}}</span>}} | | {{Icon/Purple|[[File:Spirit_icon_noborder.png|20px|link=Spirit Power{{If_lang}}]]|{{{spirit_power|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|TechPower|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|TechPower}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|TechPower}}</span>}} | ||
|} | |}|- | ||
! colspan="2" class="infobox-h-text-stat-subtitle" {{#ifeq:{{#var:show_info}}|0|style{{=}}"display:none;"}}| | |||
|- | |||
! colspan="2" class="infobox-h-text-stat-subtitle" {{# | |||
<span class="infotext-h-bold infotext-h-title infotext-h-big">{{#invoke:Dictionary|translate|Information}}</span> | <span class="infotext-h-bold infotext-h-title infotext-h-big">{{#invoke:Dictionary|translate|Information}}</span> | ||
|- | |- | ||
! colspan="2" class="infobox-h-subsection" {{# | ! colspan="2" class="infobox-h-subsection" {{#ifeq:{{#var:show_info}}|0|style{{=}}"display:none;"}} | | ||
{| class="infobox-h-subsection-child" | {| class="infobox-h-subsection-child" | ||
|- | |-{{#if:{{{release_date|}}}| | ||
{{#if:{{{release_date|}}}| | |||
{{!}}[[Heroes by release{{If_lang}}|<span>{{#invoke:Dictionary|translate|ReleaseDate}}</span>]]: | {{!}}[[Heroes by release{{If_lang}}|<span>{{#invoke:Dictionary|translate|ReleaseDate}}</span>]]: | ||
{{!}}{{{release_date|}}} | {{!}} {{{release_date|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{pronouns|}}}| | {{#if:{{{pronouns|}}}| | ||
{{!}}Pronouns: | {{!}}Pronouns: | ||
{{!}}{{{pronouns|}}} | {{!}} {{{pronouns|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{voice_actor|}}}| | {{#if:{{{voice_actor|}}}| | ||
{{!}}{{#invoke:Dictionary|translate|VoiceActor}}: | {{!}}{{#invoke:Dictionary|translate|VoiceActor}}: | ||
{{!}}{{{voice_actor|}}} | {{!}} {{{voice_actor|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{codenames|}}}| | {{#if:{{{codenames|}}}| | ||
{{!}}{{#invoke:Dictionary|translate|Codenames}}: | {{!}}{{#invoke:Dictionary|translate|Codenames}}: | ||
{{!}}{{{codenames|}}} | {{!}} {{{codenames|}}} | ||
}} | }} | ||
|} | |} | ||
|}</div | |}</div>{{#ifeq:{{NAMESPACE}}|Template||{{DISPLAYTITLE:{{#var:name_display}}}}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|IsDisabled}}|false| | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|IsDisabled}}|false| | ||
{{#ifeq:{{lc:{{{nocat|false}}}}}|false| | {{#ifeq:{{lc:{{{nocat|false}}}}}|false| | ||
{{lang cat|Heroes}} | {{lang cat|Heroes}} | ||
{{#ifeq:{{#var:hero_en}}|Silver (Transformed)||{{lang cat|{{#var:hero_en}}}}}} | {{#ifeq:{{#var:hero_en}}|Silver (Transformed)||{{lang cat|{{#var:hero_en}}}}}} | ||
{{#ifexpr: | {{#ifexpr:{{#var:val_pellets}} > 1|{{lang cat|Heroes with spreadshot weapons}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HitOnceAcrossAllBullets}}|true|{{lang cat|Heroes with single damage spreadshot weapons}}}}}} | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HitOnceAcrossAllBullets}}|true|{{lang cat|Heroes with single damage spreadshot weapons}}}}}} | ||
{{#ifexpr: | {{#ifexpr:{{#var:val_burst}} > 1|{{lang cat|Heroes with burst weapons}}}} | ||
{{#ifexpr:( | {{#ifexpr:({{#var:val_pellets}} <= 1 and {{#var:val_burst}} <= 1)|{{lang cat|Heroes with automatic weapons}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_alt_fire_var|{{#var:hero_key}}|BulletDamage}}|No Alt Fire||{{lang cat|Heroes with alternate fire weapons}}}} | {{#ifeq:{{#invoke:HeroData|get_alt_fire_var|{{#var:hero_key}}|BulletDamage}}|No Alt Fire||{{lang cat|Heroes with alternate fire weapons}}}} | ||
{{# | {{#ifeq:{{#var:has_crit_reduction}}|1|{{lang cat|Heroes with modified crit resistance}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadSingle}}|true|{{lang cat|Heroes with single reload weapons}}}} | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadSingle}}|true|{{lang cat|Heroes with single reload weapons}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CanCrit}}|false|{{lang cat|Heroes that don't deal critical damage}}}} | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CanCrit}}|false|{{lang cat|Heroes that don't deal critical damage}}}} | ||
{{#ifexpr: | {{#ifexpr:{{#var:val_crit_bonus}} != 0|{{lang cat|Heroes with modified crit scale}}}} | ||
{{# | {{#ifeq:{{#var:has_bullet_resist}}|1|{{lang cat|Heroes with modified bullet resist}}}} | ||
{{# | {{#ifeq:{{#var:has_spirit_resist}}|1|{{lang cat|Heroes with modified spirit resist}}}} | ||
{{# | {{#ifeq:{{#var:has_melee_resist}}|1|{{lang cat|Heroes with modified melee resist}}}} | ||
{{# | {{#ifeq:{{#var:has_debuff_resist}}|1|{{lang cat|Heroes with modified debuff resist}}}} | ||
{{# | {{#ifeq:{{#var:has_bullet_lifesteal}}|1|{{lang cat|Heroes with modified bullet lifesteal}}}} | ||
{{# | {{#ifeq:{{#var:has_spirit_lifesteal}}|1|{{lang cat|Heroes with modified spirit lifesteal}}}} | ||
{{#if: | {{#if:{{#var:val_stamina}}|{{lang cat|Heroes with {{#var:val_stamina}} stamina}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|FalloffStartRange}}|{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|FalloffEndRange}}|{{lang cat|Heroes with no weapon damage falloff}}}} | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|FalloffStartRange}}|{{#invoke:HeroData|get_hero_var|{{#var:hero_lang}}|FalloffEndRange}}|{{lang cat|Heroes with no weapon damage falloff}}}} | ||
{{#if:{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|SpinAcceleration}}|{{lang cat|Heroes with spin up weapons}}}} | {{#if:{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|SpinAcceleration}}|{{lang cat|Heroes with spin up weapons}}}} | ||
{{#if:{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|GravityChange}}|{{lang cat|Heroes with modified gravity scale}}}} | {{#if:{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|GravityChange}}|{{lang cat|Heroes with modified gravity scale}}}} | ||
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletGravityScale}}|0|{{lang cat|Heroes without bullet gravity}}}} | {{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletGravityScale}}|0|{{lang cat|Heroes without bullet gravity}}}} | ||
{{#ifexpr: | {{#ifexpr:{{#var:val_dash_speed}} < 14.7|{{lang cat|Heroes with slow dash speed}}|{{#ifeq:{{#var:val_dash_speed}}|14.7|{{lang cat|Heroes with medium dash speed}}|{{lang cat|Heroes with fast dash speed}}}}}} | ||
{{# | }}}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
}}}} | |||
Revision as of 03:09, 28 June 2026
! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-weapon" |
| Ammo: | |
| Bullets per sec: | |
| Reload Time: | |
| Bullet Velocity: | |
| Light Melee: | |
| Heavy Melee: |
|- ! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-vitality" |
Health ---->
| Health: | |
| Health Regen: | |
| Move Speed: | |
| Sprint Speed: | |
| Dash Speed: | |
| Stamina: | |
| Stamina Cooldown: |
|- ! colspan="2" class="infobox-h-subsection infobox-h-dropdown infobox-h-dropdown-spirit" |
| Spirit Power: |
! colspan="2" class="infobox-h-text-stat-subtitle" | Information |- ! colspan="2" class="infobox-h-subsection" |
| April 16, 2024 | |
| Voice Actor: | Samoa Joe |
| Internal names: | Atlas; Bull |
Summary
This template fills in most parameters for an Infobox automatically with data from Data:HeroData.json, including base stats and scaling from Levels (Boons) or Spirit Power. Rendering is handled by Module:InfoboxHero, where the row layout is defined as a configuration table at the top of the module. Per-hero colors, backgrounds and logo sizes come from Data:Infobox hero.json.
The hero's code name or their capitalized English name must be entered in the "key" parameter first. Code name is preferable because it loads faster.
For example, this "key" fills the Infobox with data for Ivy:
|key = hero_tengu
or
|key = Ivy
Certain rows, such as Bullet Resist, Spirit Resist, Melee Resist, Debuff Resist, and Lifesteal, will automatically hide themselves if the hero has 0 base value (and no scaling) for that row's statistic. The "Information" section hides itself entirely unless at least one of its parameters is provided.
All base values can be overwritten for rare situations that cannot be immediately automated, but should otherwise be left alone.
If no valid hero is provided, the template will default on TargetDummy (the default character used in Sandbox modes).
Documentation
Description:
Automated infobox for Deadlock heroes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| key | key | The hero's key word, used to auto-fill table contents from "Data:HeroData.json". Can be the hero's capitalized name in English or the hero's in-game code name.
| String | required |
| voice_actor | voice_actor | Voice actor(s) for the hero. Footnotes providing sources can (and should) be added when possible.
| Unknown | suggested |
| release_date | release_date | Date of the official release of the hero.
| Unknown | suggested |
| codenames | codenames | Alternative names used for this hero, found inside of game files.
| Unknown | suggested |
| pronouns | pronouns | Character pronouns assumed from in-game text/voice-lines or other official information.
| Unknown | optional |
| show_hero_tags | show_hero_tags | Shows (true) or hides (false) the three-word hero tags shown in the roster screen. (ex. "Tank, Brawler, Bull-Headed" for Abrams). Heroes without tags omit the row automatically.
| Boolean | optional |
| show_icon | show_icon | Shows (true) or hides (false) the icon used by the hero in the in-game chat.
| Boolean | optional |
| no_ammo | no_ammo | If set to true, disables the "Ammo" and "Reload Time" statistics.
| Boolean | optional |
| nocat | nocat | If set to true, suppresses all automatic categories. Categories are only ever added in the main namespace, and never for disabled heroes.
| Boolean | optional |
| name_font_size | name_font_size | Sets the size of the font for hero names that do not have a logo image. Only has an effect when "<Name>_name.svg" is missing, which includes every hero on languages that have no localized logos.
| Unknown | optional |
| card | card | A file name, including the extension, used as the hero's portrait. Falls back to "Dummy card.png" if the file does not exist. NOTE: Only use for overriding automatic data.
| String | optional |
| icon | icon | The hero's chat icon, given WITHOUT the ".png" extension. NOTE: Only use for overriding automatic data.
| String | optional |
| name | name | Overrides the hero's name. Used both for the displayed title and to locate the name logo at "<name>_name.svg", so give a hero name, NOT a file name. (Silver (Transformed) uses "Silver" to reuse Silver's logo.)
| String | optional |
| dps | dps | no description | Unknown | optional |
| bullet_damage | bullet_damage | no description | Unknown | optional |
| pellets_per_shot | pellets_per_shot | For heroes with shotgun-type weapons that fire multiple bullets all at once, at the same time. (Silver, Abrams, Shiv, etc.) The row is hidden when the value is 1 or less. | Unknown | optional |
| bullets_per_burst | bullets_per_burst | For heroes with weapons that fire multiple bullets in longer bursts, instead of all at once. (Seven, Paradox, Sinclair, Lash) The row is hidden when the value is 1 or less. | Unknown | optional |
| ammo | ammo | no description | Unknown | optional |
| bullets_per_sec | bullets_per_sec | no description | Unknown | optional |
| reload_time | reload_time | no description | Unknown | optional |
| bullet_velocity | bullet_velocity | no description | Unknown | optional |
| light_melee | light_melee | no description | Unknown | optional |
| heavy_melee | heavy_melee | no description | Unknown | optional |
| max_range | max_range | Maximum distance the bullet can reach. The row only appears when this is provided. (Bebop)
| Unknown | optional |
| max_health | max_health | no description | Unknown | optional |
| health_regen | health_regen | no description | Unknown | optional |
| crit_reduction | crit_reduction | Percentage (+ or -) that is multiplied to the critical damage (ex. headshots) received from other heroes, increasing/reducing critical damage intake. (Mo & Krill, Rem, Seven) | Unknown | optional |
| bullet_resist | bullet_resist | no description | Unknown | optional |
| spirit_resist | spirit_resist | no description | Unknown | optional |
| melee_resist | melee_resist | no description | Unknown | optional |
| debuff_resist | debuff_resist | Base debuff resistance, as a percentage. (Mina) | Unknown | optional |
| bullet_lifesteal | bullet_lifesteal | Healing gained from bullet damage inflicted to other heroes. | Unknown | optional |
| spirit_lifesteal | spirit_lifesteal | Healing gained from spirit damage inflicted to other heroes. | Unknown | optional |
| move_speed | move_speed | no description | Unknown | optional |
| sprint_speed | sprint_speed | no description | Unknown | optional |
| stamina | stamina | no description | Unknown | optional |
| stamina_cooldown | stamina_cooldown | no description | Unknown | optional |
| spirit_power | spirit_power | Base spirit power and scaling. | Unknown | optional |
