User:Sur/doc: Difference between revisions

From The 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

Script error: The function "write_infobox" does not exist.

Parameters

[edit | edit source]

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