Template:Infobox hero: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
-->
-->
<div style="margin-left: 2em;">
<div style="margin-left: 2em;">
{| class="infobox" style="border-left:solid 5px #2F2F2F;border-right:solid 5px #2F2F2F;border-top:solid 2px #2F2F2F;border-bottom:solid 0px #2F2F2F; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif;padding:0px;border-radius: 13px;color: #FFEFD7;width: 270px; background-color: #2F2F2F; font-weight: bold"
{| class="infobox" style="border-left:solid 5px #2F2F2F;border-right:solid 5px #2F2F2F;border-top:solid 2px #2F2F2F;border-bottom:solid 0px #2F2F2F; font-family: 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif;padding:0px;border-radius: 13px;color: #FFEFD7;width: 270px; background-color: #2F2F2F; font-weight: bold"
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: {{{font-size|25px}}}; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 3px black, 1px 1px 2px #A69885, 0px 0px 1px black; color:#FFEFD7;"; color:#FFEFD7;" |
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: {{{font-size|25px}}}; font-family: 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 3px black, 1px 1px 2px #A69885, 0px 0px 1px black; color:#FFEFD7;"; color:#FFEFD7;" |
<div style="display: flex; justify-content: space-between">
<div style="display: flex; justify-content: space-between">
<div style="width: 50px;"></div>
<div style="width: 50px;"></div>
Line 18: Line 18:
! colspan="2"style="margin:auto;text-align:center;" |<div class="HeroCard2"; style="transition: 0.2s transform ease-in-out;overflow:hidden;border-radius: 15px;background-image: linear-gradient(#A69885, #72695A);padding:0px; background-color:#a79986;text-align:center;max-width:190px;height: auto;margin:auto;box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);">[[File:{{{card}}}|190px|alt={{{BASEPAGENAME}}}]]</div>
! colspan="2"style="margin:auto;text-align:center;" |<div class="HeroCard2"; style="transition: 0.2s transform ease-in-out;overflow:hidden;border-radius: 15px;background-image: linear-gradient(#A69885, #72695A);padding:0px; background-color:#a79986;text-align:center;max-width:190px;height: auto;margin:auto;box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);">[[File:{{{card}}}|190px|alt={{{BASEPAGENAME}}}]]</div>
|-
|-
!colspan="2" style="font-weight: bold; font-size: 16px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 3px black, 1px 1px 2px #A69885, 0px 0px 1px black; color:#FFEFD7;text-align:center;" | <span style="text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);">{{#invoke:Lang|get_string|CitadelCategoryWeapon}}:</span><br><span style="position:relative; bottom:3px;font-size: {{{weapon-font-size|19px}}}">{{#if:{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}|''"{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}"''}}</span>
!colspan="2" style="font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 3px black, 1px 1px 2px #A69885, 0px 0px 1px black; color:#FFEFD7;text-align:center;" | <span style="text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);">{{#invoke:Lang|get_string|CitadelCategoryWeapon}}:</span><br><span style="position:relative; bottom:3px;font-size: {{{weapon-font-size|19px}}}">{{#if:{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}|''"{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}"''}}</span>
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 15px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-style: italic; text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7); color:#FFEFD7;text-align:center;position:relative; bottom:-7px;" | <b style="text-transform:lowercase"><br style="display: block; margin-top: -9px;">{{#invoke:Lang|get_string|Citadel_HeroPage_BaseStats}}</b>
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 15px; font-family: 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-style: italic; text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7); color:#FFEFD7;text-align:center;position:relative; bottom:-7px;" | <b style="text-transform:lowercase"><br style="display: block; margin-top: -9px;">{{#invoke:Lang|get_string|Citadel_HeroPage_BaseStats}}</b>
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
! colspan="2" style="position:relative;box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);border-radius: 7px;background-color: #d5903f; font-size: 16px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7;text-align:center; border-bottom: none" | [[Stats#Weapon|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">{{#invoke:Lang|get_string|CitadelHeroStats_Weapon}}</span>]]
! colspan="2" style="position:relative;box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);border-radius: 7px;background-color: #d5903f; font-size: 16px; font-family: 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7;text-align:center; border-bottom: none" | [[Stats#Weapon|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">{{#invoke:Lang|get_string|CitadelHeroStats_Weapon}}</span>]]
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
| style="width:124px;font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | {{#invoke:Lang|get_string|DPS_label}}:
| style="width:124px;font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | {{#invoke:Lang|get_string|DPS_label}}:
Line 56: Line 56:
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7){{!}}{{Icon/Brown||{{{max_range|}}}m}}}}
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7){{!}}{{Icon/Brown||{{{max_range|}}}m}}}}
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
! colspan="2" style="position:relative;box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);border-radius: 7px;background-color: #74b01c; font-weight: bold; font-size: 16px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black ; color:#FFEFD7;text-align:center; border-bottom: none"  | [[Stats#Vitality|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">{{#invoke:Lang|get_string|CitadelHeroStats_Vitality}}</span>]]
! colspan="2" style="position:relative;box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);border-radius: 7px;background-color: #74b01c; font-weight: bold; font-size: 16px; font-family:, 'PT Serif','Palatino','FreeSerif','Liberation Serif',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black ; color:#FFEFD7;text-align:center; border-bottom: none"  | [[Stats#Vitality|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">{{#invoke:Lang|get_string|CitadelHeroStats_Vitality}}</span>]]
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | {{#invoke:Lang|get_string|StatDesc_HealthAttribute}}:
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | {{#invoke:Lang|get_string|StatDesc_HealthAttribute}}:

Revision as of 08:13, 22 October 2024

[[File:{{{card}}}|190px|alt={{{BASEPAGENAME}}}]]
Weapon:
"Hero Not Found"

BASE STATS
Weapon Stats
Damage Per Second: Hero Not Found
Bullet Damage: Hero Not Found
Ammo: Hero Not Found
Bullets per sec: Hero Not Found
Reload Time: Hero Not Founds
Bullet Velocity: Hero Not Foundm/s
Light Melee: Hero Not Found
Heavy Melee: Hero Not Found
Falloff Range: Hero Not Foundm → Hero Not Foundm
Vitality Stats
Health: Hero Not Found
Health Regen: Hero Not Found
Bullet Resist: Hero Not Found%
Spirit Resist: Hero Not Found%
Move Speed: Hero Not Foundm/s
Sprint Speed: Hero Not Foundm/s
Stamina: Hero Not Found
Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at Infobox hero/styles.css.
CSS3 logo.svg
This template uses CSS found at Infobox hero/themes.css.
Abrams
[[File:{{{card}}}|190px|alt={{{BASEPAGENAME}}}]]
Weapon:
"0"

BASE STATS
Weapon Stats
Damage Per Second: 51
Bullet Damage: 3.6
Ammo: 9
Bullets per sec: 1.59
Reload Time: 0.353s
Bullet Velocity: 610m/s
Light Melee: 50
Heavy Melee: 116
Falloff Range: 17m → 40m
Vitality Stats
Health: 800
Health Regen: 1.5
Bullet Resist: 0%
Spirit Resist: 0%
Move Speed: 6.4m/s
Sprint Speed: 1.6m/s
Stamina: 3
Charges into close combat

Abrams has the bulk and sustain to lead from the front, often running into the middle of his foes and watching them scatter. If his enemies waste their fire on him, his backline teammates can lay out damage with impunity.

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
keykey

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.

Default
hero_targetdummy
Example
hero_atlas
Stringrequired
voice_actorvoice_actor

Voice actor(s) for the hero. Footnotes providing sources can (and should) be added when possible.

Example
Samoa Joe <ref>[https://www.imdb.com/title/tt33268153/fullcredits/Deadlock] on [https://www.imdb.com/IMDb]</ref>
Unknownsuggested
release_daterelease_date

Date of the official release of the hero.

Example
April 24, 2024
Unknownsuggested
codenamescodenames

Alternative names used for this hero, found inside of game files.

Example
Atlas; Bull
Unknownsuggested
pronounspronouns

Character pronouns assumed from in-game text/voice-lines or other official information.

Example
He/Him, She/Her, They/Them, He/Them, She/Them
Unknownoptional
show_hero_tagsshow_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.

Default
true
Booleanoptional
show_iconshow_icon

Shows (true) or hides (false) the icon used by the hero in the in-game chat.

Default
true
Booleanoptional
no_ammono_ammo

If set to true, disables the "Ammo" and "Reload Time" statistics.

Default
false
Booleanoptional
nocatnocat

If set to true, suppresses all automatic categories. Categories are only ever added in the main namespace, and never for disabled heroes.

Default
false
Booleanoptional
name_font_sizename_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.

Default
25px
Example
25px
Unknownoptional
cardcard

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.

Default
<Hero name> card.png
Example
Abrams card.png
Stringoptional
iconicon

The hero's chat icon, given WITHOUT the ".png" extension. NOTE: Only use for overriding automatic data.

Default
<Hero name>
Example
Abrams
Stringoptional
namename

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.)

Example
Silver
Stringoptional
dpsdps

no description

Unknownoptional
bullet_damagebullet_damage

no description

Unknownoptional
pellets_per_shotpellets_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.

Unknownoptional
bullets_per_burstbullets_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.

Unknownoptional
ammoammo

no description

Unknownoptional
bullets_per_secbullets_per_sec

no description

Unknownoptional
reload_timereload_time

no description

Unknownoptional
bullet_velocitybullet_velocity

no description

Unknownoptional
light_meleelight_melee

no description

Unknownoptional
heavy_meleeheavy_melee

no description

Unknownoptional
max_rangemax_range

Maximum distance the bullet can reach. The row only appears when this is provided. (Bebop)

Example
32{{PI|2}}
Unknownoptional
max_healthmax_health

no description

Unknownoptional
health_regenhealth_regen

no description

Unknownoptional
crit_reductioncrit_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)

Unknownoptional
bullet_resistbullet_resist

no description

Unknownoptional
spirit_resistspirit_resist

no description

Unknownoptional
melee_resistmelee_resist

no description

Unknownoptional
debuff_resistdebuff_resist

Base debuff resistance, as a percentage. (Mina)

Unknownoptional
bullet_lifestealbullet_lifesteal

Healing gained from bullet damage inflicted to other heroes.

Unknownoptional
spirit_lifestealspirit_lifesteal

Healing gained from spirit damage inflicted to other heroes.

Unknownoptional
move_speedmove_speed

no description

Unknownoptional
sprint_speedsprint_speed

no description

Unknownoptional
staminastamina

no description

Unknownoptional
stamina_cooldownstamina_cooldown

no description

Unknownoptional
spirit_powerspirit_power

Base spirit power and scaling.

Unknownoptional