User:Sur: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m split by commas
Sur (talk | contribs)
m placeholder voice actor, update history, last updated
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<div style="margin-left: 2em;">
 
<table class="wikitable infobox" style="color: #FFEFD7; background-color: #2F2F2F; font-weight: bold;">
 
  <tr>
<table class="wikitable">
    <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;">
{{#invoke: TableGenerator | generateHtmlTable
      <div style="display: flex; justify-content: space-between;">
| cols=4
        <div style="width: 50px;"></div>
| onlyBody=true
        <div class="infobox-hero-name">{{{name_localized}}}</div>
| cell_values=WeaponDPS 7.79,BulletDamage 4.675,ClipSize 9,RoundsPerSecond 1.67
        <div style="padding-left: 10px;">[[Image:{{{name_english}}}_MM.png|frameless|center|40px]]</div>
}}
      </div>
    </th>
  </tr>
  <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>
  <tr><td>Release Date</td><td>IDK</td></tr>
  <tr><td>Last Updated</td><td>IDK</td></tr>
  <tr>
    <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>
  </tr>
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }}
  <tr>
    <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>
  </tr>
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }}
</table>
</table>
 
</div></includeonly><noinclude>
 
{{Documentation}}
<span class="spirit-purple"> text </span>
</noinclude>
<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