User:Sur: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Sur (talk | contribs)
m placeholder voice actor, update history, last updated
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
INVOKE
<includeonly>
{{#invoke:countArgs|generateTable
<div style="margin-left: 2em;">
|cols=3
<table class="wikitable infobox" style="color: #FFEFD7; background-color: #2F2F2F; font-weight: bold;">
|stat_name1=Stat1|stat_value1=Value1
  <tr>
|stat_name2=Stat2|stat_value2=Value2
    <th colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 25px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black;">
|stat_name3=Stat3|stat_value3=Value3
      <div style="display: flex; justify-content: space-between;">
|stat_name4=Stat4|stat_value4=Value4
        <div style="width: 50px;"></div>
|stat_name5=Stat5|stat_value5=Value5
        <div class="infobox-hero-name">{{{name_localized}}}</div>
|stat_name6=Stat6|stat_value6=Value6
        <div style="padding-left: 10px;">[[Image:{{{name_english}}}_MM.png|frameless|center|40px]]</div>
|stat_name7=Stat7|stat_value7=Value7
      </div>
|stat_name8=Stat8|stat_value8=Value8
    </th>
|stat_name9=Stat9|stat_value9=Value9
  </tr>
|stat_name10=Stat10|stat_value10=Value10
  <tr>
}}
    <th colspan="2" style="padding:0px; background-color:#a79986;">[[File:{{{name_english}}} card.png|200px|alt={{{BASEPAGENAME}}}]]</th>
 
  </tr>
 
  <tr><td>Voice Actor</td><td>IDK</td></tr>
TEMPLATE
  <tr><td>Release Date</td><td>IDK</td></tr>
{{StatBox
  <tr><td>Last Updated</td><td>IDK</td></tr>
|box_name=Weapon
  <tr>
|box_color=#d5903f
    <th colspan="2" style="background-color: #d5903f; font-weight: bold; font-size: 17px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; border-bottom: none">{{#invoke:AttributeData|localize_category|Weapon}}</th>
|stat_name1=WeaponDPS
  </tr>
|stat_value1=7.79
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }}
|stat_name2=BulletDamage
  <tr>
|stat_value2=4.675
    <th colspan="2" style="background-color: #74b01c; font-weight: bold; font-size: 17px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; border-bottom: none">{{#invoke:AttributeData|localize_category|Vitality}}</th>
|stat_name3=ClipSize
  </tr>
|stat_value3=9
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }}
|stat_name4=RoundsPerSecond
</table>
|stat_value4=1.67
</div></includeonly><noinclude>
|stat_name5=LightMeleeDamage
{{Documentation}}
|stat_value5=63
</noinclude>
|stat_name6=HeavyMeleeDamage
|stat_value6=116
|stat_name7=BaseWeaponDamageIncrease
|stat_value7=0
|stat_name8=FireRate
|stat_value8=0
|stat_name9=ClipSizeIncrease
|stat_value9=0
|stat_name10=ReloadTime
|stat_value10=.3525
|stat_name11=ReloadSpeed
|stat_value11=1
|stat_name12=BulletSpeed
|stat_value12=?
|stat_name13=BulletSpeedIncrease
|stat_value13=0
|stat_name14=BulletLifesteal
|stat_value14=0
}}
{{StatBox
|box_name=Vitality
|box_color=#74b01c
}}
{{StatBox
|box_name=Spirit
|box_color=#c288f0
}}
 
<span class="spirit-purple"> text </span>
<span class="vitality-green"> text </span>
<span class="weapon-orange"> text </span>

Latest revision as of 23:06, 23 October 2024

Documentation [view] [edit] [history] [purge]

Overview[edit | edit source]

Creates a summarized infobox for a given hero.

Example[edit | edit source]

Recommended to use Module:HeroData's write_infobox function to generate this dynamically, for example

{{#invoke:HeroData|write_infobox|Abrams}}


Outputs


Abrams
{{{BASEPAGENAME}}}
Voice ActorIDK
Release DateIDK
Last UpdatedIDK
Weapon
DPS 70.1
Ammo 9
Bullets per sec 1.67
Reload Time 0.353s
Vitality
Max Health 570
Bullet Resist 0%
Spirit Resist 0%
Move Speed 6.8m/s

Parameters[edit | edit source]

Parameters are passed from Module:HeroData, see there for more documentation