User:Samlovesmath/Sandbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Samlovesmath (talk | contribs)
mNo edit summary
Samlovesmath (talk | contribs)
m minor fixes (ex. background image sizing)
Line 25: Line 25:
<span style="font-size:small; opacity:50%">'''''WIP -- Last edited: Mar 28, 2026'''''</span>
<span style="font-size:small; opacity:50%">'''''WIP -- Last edited: Mar 28, 2026'''''</span>
<!--
<!--
-->{{#vardefine:key|hero_ghost}}<!-- hero keyname
-->{{#vardefine:key|hero_mirage}}<!-- hero keyname


-->{{#vardefine:color1| \#098959 }} <!--
-->{{#vardefine:color1| \#552E68 }} <!--
-->{{#vardefine:color1_grad| \#0F6D4C }} <!--
-->{{#vardefine:color1_grad| \#452953 }} <!--
-->{{#vardefine:color2| \#6DD48C }} <!--
-->{{#vardefine:color2| \#CEA05A }} <!--


-->{{#vardefine:text_title| \#DCFFE7 }} <!--
-->{{#vardefine:text_title| \#FFE1BC }} <!--
-->{{#vardefine:stats_text| \#bbffbf }} <!--
-->{{#vardefine:stats_text| \#EFD8FF }} <!--
-->{{#vardefine:stats_back| \#12301aA3 }} <!--
-->{{#vardefine:stats_back| \#201228A3 }} <!--


-->{{#vardefine:background_height| x700px }} <!--
-->{{#vardefine:background_height| 700px }} <!--
-->{{#vardefine:background_margin| -118px }} <!--
-->{{#vardefine:background_margin| -118px }} <!--


-->{{#vardefine:logo_height| x32px }} <!--
-->{{#vardefine:logo_height| x49px }} <!--
-->{{#vardefine:logo_bleed| 0px }} <!--
-->{{#vardefine:logo_bleed| -2px 0px -2px 0px }} <!--
-->{{#vardefine:logo_bottom| 0px }} <!--
-->{{#vardefine:logo_bottom| 2px }} <!--




Line 46: Line 46:
-->{{#vardefine:release_date| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|release_date}} }} <!--
-->{{#vardefine:release_date| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|release_date}} }} <!--
-->{{#vardefine:codenames| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|codenames}} }} <!--
-->{{#vardefine:codenames| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|codenames}} }} <!--
-->{{#vardefine:pronouns| {{#invoke:Samlovesmath/Sandbox|get_value|{{#var:key}}|pronouns}} }} <!--
-->{{#vardefine:hero_key_or_en|{{#var:key}}}} <!-- en
-->{{#vardefine:hero_key_or_en|{{#var:key}}}} <!-- en
-->{{#vardefine:hero_en|{{#invoke:Lang|get_string|{{#var:key}}|lang_code_override=en}}}}<!-- en
-->{{#vardefine:hero_en|{{#invoke:Lang|get_string|{{#var:key}}|lang_code_override=en}}}}<!-- en
Line 66: Line 67:


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


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


Line 230: Line 231:
|-
|-
<!---- Pronouns (Manual Input) ---->
<!---- Pronouns (Manual Input) ---->
{{#if: {{{pronouns|}}} |
{{#if: {{#var:pronouns}} |
{{!}}Pronouns:
{{!}}Pronouns:
{{!}}{{{pronouns}}}
{{!}}{{#var:pronouns}}
}}
}}
|-
|-

Revision as of 20:20, 31 March 2026

Infobox Tests

(Note: Only properly viewable with User:Samlovesmath/common.css, and with site's default Common.css disabled.)

Hero Infobox v2

Uses new variables:

  • color1   *quote color
  • color1_grad   *lower background gradient color
  • color2   *same hue as roster select, brightened for clarity
  • background image   *ex. Geist_select_background.png for Lady Geist


Todos:

  • APPLY NEW SANDBOX MODULE
  • Fix Stat key word links--certain parts that stand for the same thing point to different places
  • Add class name to bullet/spirit superscript template on certain stats (ex. +48 [heart-gun image]) to make CSS for padding displacement to avoid clipping over where it is placed
  • Fix/finish quote replacement
  • Lang.json:
    • Change Citadel_HeroPage_BaseStats -- BASE STATS ➔ BASE STATISTICS


Errors noted:

  • Weapon Stat property "Max Range" is a manual template input for heroes such as Bebop. Future updates to this value would have to be updated manually. Make it properly implemented in HeroData for automatic changes? (ask Sur/LVL/Domo?)

WIP -- Last edited: Mar 28, 2026


[[File:Script error: No such module "Samlovesmath/Sandbox".|x700px|right]]
{{{BASEPAGENAME}}}
Weapon:
"Promises Kept"

BASE STATS

Weapon Stats
Damage Per Second: 40.3
Bullet Damage: 14.8+0.3
Ammo: 16
Bullets per sec: 2.72
Reload Time: 2.6s
Bullet Velocity: 828m/s
Light Melee: 50+1.58
Heavy Melee: 116+3.67
Falloff Range: 20m 58m
Vitality Stats
Health: 730+45
Health Regen: 1.5
Move Speed: 7m/s
Sprint Speed: 1.6m/s
Dash Speed: 14.7s
Stamina: 3
Stamina Cooldown: 4.5s
Spirit Stats
Spirit Power: 0+1.1

Information

Pronouns: Script error: No such module "Samlovesmath/Sandbox".
Voice Actor: Script error: No such module "Samlovesmath/Sandbox".
Release Date: Script error: No such module "Samlovesmath/Sandbox".
Internal names: Script error: No such module "Samlovesmath/Sandbox".

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

Bodyguard - Traveller - Focused