User:Sur/doc: Difference between revisions

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


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


Line 28: Line 28:


==Parameters==
==Parameters==
Parameters are passed by HeroData's write_infobox lua invoke, call it with just the parameter HERO_NAME in english
Parameters are passed from [[Module:HeroData]], see there for more documentation

Revision as of 22:55, 21 September 2024

Overview

Creates a summarized infobox for a given hero.

Also displays the hero's role and playstyle below.

Example

Recommended to use Module:HeroData's write_infobox function (also called by Template:GenerateHeroInfobox to generate this dynamically, for example

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


Outputs

Hero Abrams Not Found

Parameters

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