User:Samlovesmath/Template:Infobox hero: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Samlovesmath (talk | contribs)
initialization
 
Samlovesmath (talk | contribs)
starting overhaul; completed basic style/variable integration
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude>
-->{{#vardefine:key|hero_ghost}}<!-- hero keyname
<templatestyles src="Samlovesmath/Infobox_hero/styles.css" />
 
<templatestyles src="Samlovesmath/Infobox_hero/themes.css" /><!--
-->{{#vardefine:color1| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|color1}} }} <!--
-->{{#vardefine:provided_key|{{{key|Abrams}}}}}<!--
-->{{#vardefine:color1_grad| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|color1_grad}} }} <!--
  If key provided is an accepted hero_[name] key, use it;
-->{{#vardefine:color2| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|color2}} }} <!--
-->{{#ifeq: {{#invoke:Samlovesmath/Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#vardefine:hero_key|{{#var:provided_key}}}}|<!--
-->{{#vardefine:grad_offset| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|grad_offset}} }} <!--
  Else, if key provided is actually the string *English* name, get the key from it to use it;
 
-->{{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|en_is_hero_key|{{#var:provided_key}}}}|true| {{#vardefine:hero_key|{{#invoke:HeroData|get_hero_key|{{#var:provided_key}}}}}}|<!--
-->{{#vardefine:text_title| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|text_title}} }} <!--
  Else, fall back on "hero_genericperson"
-->{{#vardefine:stats_text| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|stats_text}} }} <!--
-->{{#vardefine:hero_key|hero_genericperson}}<!--
-->{{#vardefine:stats_back| \#{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|stats_back}} }} <!--
-->
 
}}}}
-->{{#vardefine:background_height| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|background_height}} }} <!--
<!--
-->{{#vardefine:background_margin| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|background_margin}} }} <!--


-->{{#vardefine:logo_height| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|logo_height}} }} <!--
  Get English string name from current key
-->{{#vardefine:logo_bleed| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|logo_bleed}} }} <!--
-->{{#vardefine:hero_en|{{#invoke:Lang|get_string|hero_key|lang_code_override=en}} }}<!--
-->{{#vardefine:logo_bottom| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|logo_bottom}} }} <!--


-->{{#vardefine:grad_height| calc({{#var:grad_offset}} + {{#var:background_height}}}} <!--
  THEME VARIABLES:
-->{{#vardefine:theme-logo-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!--
-->{{#vardefine:theme-bg-image| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!--
-->{{#vardefine:theme-bg-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-height}} }}<!--


 
  DEPRECATED PARAM VARIABLES:  (at least until its all moved over)
-->{{#vardefine:voice_actor| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|voice_actor}} }} <!--
-->{{#ifeq:{{{no_name|}}}|true|{{#vardefine:show_logo|false}}|{{#vardefine:show_logo|{{{show_logo|}}}}}}}<!--
-->{{#vardefine:release_date| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|release_date}} }} <!--
-->{{#ifeq:{{{no_summary|}}}|true|{{#vardefine:show_logo|false}}|{{#vardefine:show_logo|{{{show_logo|}}}}}}}<!--
-->{{#vardefine:codenames| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|codenames}} }} <!--
-->{{#ifeq:{{{no_icon|}}}|true|{{#vardefine:show_logo|false}}|{{#vardefine:show_logo|{{{show_logo|}}}}}}}<!--
-->{{#vardefine:pronouns| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|pronouns}} }} <!--
-->{{#vardefine:hero_key_or_en|{{#var:key}}}} <!-- en
-->{{#vardefine:hero_en|{{#invoke:Lang|get_string|{{#var:key}}|lang_code_override=en}}}}<!-- en


-->{{#vardefine:quotemark|"}} <!-- for inserting into html
-->{{#vardefine:quotemark|"}} <!-- for inserting into html


--{{#vardefine:max_range|31}} <!-- debug; manual template value (weapon stats)
-->


<!---- Overridden Variable Styles ---->
  --- Overridden Variable Styles ---
<div class="infobox" style=
--><div class={{#var:quotemark}}infobox {{#var:hero_key}}{{#var:quotemark}}><!--
{{#var:quotemark}}
--infobox_th_color2: {{#var:color2}} !important;
--infobox_th_text_title: {{#var:text_title}} !important;
--infobox_th_stats_text: {{#var:stats_text}} !important;
--infobox_th_stats_back: {{#var:stats_back}} !important;
--infobox_th_backMargin: {{#var:background_margin}} !important;
--infobox_th_logoBleed: {{#var:logo_bleed}} !important;
--infobox_th_logoBottom: {{#var:logo_bottom}} !important;
{{#var:quotemark}}>


<!---- Box Background ---->
  --- Box Background ---
<div class="infobox-background">[[File:{{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|background_image}}|x{{#var:background_height}}|right|link=]]</div>
--><div class="infobox-background">[[File:{{#var:theme-bg-image}}|{{#var:theme-bg-height}}|right|link=]]</div>


{| class="infobox-content" style="background-image: linear-gradient(180deg, {{#var:color1}}b3 calc({{#var:grad_height}} * calc(3/7)), {{#var:color1_grad}} {{#var:grad_height}}); background-color: transparent;"
{| class="infobox-content"
! colspan="2" class="infobox-title" style="font-size: {{{font-size|25px}}};" |
! colspan="2" class="infobox-title" style="font-size: {{{font-size|25px}}};" |


Line 54: Line 41:
<div class="infobox-title-hero" style="display: flex; justify-content: space-between;">
<div class="infobox-title-hero" style="display: flex; justify-content: space-between;">
<div class="infobox-title-hero-left"></div>
<div class="infobox-title-hero-left"></div>
<div class="infobox-title-hero-middle">{{If lang|{{#ifeq: {{{no_name|}}}|true|{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}|{{Template:Icon/White|[[File:{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}_name.png|{{#var:logo_height}}|class=notpageimage]]}}}}|{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}}}</div>
<div class="infobox-title-hero-middle">{{If lang|{{#ifeq: {{{no_name|}}}|false|{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}|{{Template:Icon/White|[[File:{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}_name.png|{{#var:logo_height}}|class=notpageimage]]}}}}|{{{name|{{#invoke:Lang|get_string|{{#var:key}}}}}}}}}</div>
<div class="infobox-title-hero-right"><div>
<div class="infobox-title-hero-right"><div>
<div class="infobox-title-hero-tornbox" style={{#var:quotemark}}background-color:{{#var:color2}};{{#var:quotemark}}></div>
<div class="infobox-title-hero-tornbox" style={{#var:quotemark}}background-color:{{#var:color2}};{{#var:quotemark}}></div>
Line 252: Line 239:
</div>}}}}
</div>}}}}


</onlyinclude><noinclude>{{Documentation}}</noinclude>
</onlyinclude><!--noinclude>{{Documentation}}</noinclude>-->

Revision as of 00:14, 14 April 2026

Page Template:Samlovesmath/Infobox hero/styles.css has no content. Page Template:Samlovesmath/Infobox hero/themes.css has no content.

[[File:Script error: No such module "Samlovesmath/Infobox_hero".|Script error: No such module "Samlovesmath/Infobox_hero".|right|link=]]
Weapon:
"Hero Not Found"

BASE STATS

Expression error: Unrecognized word "hero".
Weapon Stats
Damage Per Second: Hero Not Found
Bullet Damage: Hero Not FoundHero not found.Hero not found.
Ammo: Hero Not FoundHero not found.Hero not found.
Bullets per sec: Hero Not FoundHero not found.Hero not found.
Reload Time: Hero Not Founds
Bullet Velocity: Hero Not Foundm/s
Light Melee: Hero Not FoundHero not found.Hero not found.
Heavy Melee: Hero Not FoundHero not found.Hero not found.
Falloff Range: Hero Not Foundm Hero Not Foundm
Vitality Stats
Health: Hero Not FoundHero not found.Hero not found.
Health Regen: Hero Not FoundHero not found.Hero not found.
Move Speed: Hero Not Foundm/sHero not found.Hero not found.
Sprint Speed: Hero Not Foundm/sHero not found.Hero not found.
Dash Speed: Hero Not FoundsHero not found.Hero not found.
Stamina: Hero Not FoundHero not found.Hero not found.
Stamina Cooldown: Hero Not FoundsHero not found.Hero not found.
Spirit Stats
Spirit Power: Hero Not FoundHero not found.Hero not found.

Information

{{#seo: |keywords=Deadlock, , hero, abilities, wiki, MOBA, shooter, character, heroes, game, valve |image_alt = A portrait image of from the video game Deadlock }}

<div class="infobox-herotags" style="--infobox_th_tags_back: #Script error: No such module "Samlovesmath/Sandbox".; --infobox_th_tags_text: #Script error: No such module "Samlovesmath/Sandbox".; ">

Error: Unknown name .
Error: Unknown name .
Error: Unknown name .