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 no longer displays role and playstyle
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Overview==
==Overview==
Creates a summarized infobox for a given hero.
Creates a summarized infobox for a given hero.
Also displays the hero's role and playstyle below.


==Example==
==Example==
Line 19: Line 17:
-->
-->


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>


Outputs
Outputs


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


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

Latest revision as of 23:14, 20 October 2024

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