User:Sur/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m link to hero module better
Sur (talk | contribs)
m generate hero infobox removed
 
Line 19: Line 19:
-->
-->


Recommended to use [[Module:HeroData]]'s write_infobox function (also called by [[Template:GenerateHeroInfobox]] to generate this dynamically, for example<br>
Recommended to use [[Module:HeroData]]'s write_infobox function to generate this dynamically, for example<br>
<pre>{{#invoke:HeroData|write_infobox|Abrams}} or {{GenerateHeroInfobox|Abrams}}</pre>
<pre>{{#invoke:HeroData|write_infobox|Abrams}}</pre>
<br>
<br>



Latest revision as of 22:56, 21 September 2024

Overview[edit | edit source]

Creates a summarized infobox for a given hero.

Also displays the hero's role and playstyle below.

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}}}
Weapon
"Case Closed"
Reloads single shells at a time. Can be interrupted
DPS 70.1
Ammo 9
Bullets per sec 1.67
Reload Time 0.353s
Vitality
Max Health 600
Bullet Resist 0%
Spirit Resist 0%
Move Speed 6.5m/s

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.

Parameters[edit | edit source]

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