Difference between revisions of "Module:Hero Icon/doc"

From Artifact Wiki
Jump to: navigation, search
(Add documentation)
 
m (Fix preview)
 
Line 2: Line 2:
 
|description = {{Note|''See also:'' [[Template:Hero ID|Hero ID template]].}}
 
|description = {{Note|''See also:'' [[Template:Hero ID|Hero ID template]].}}
 
This module provides a hero's icon without the need of aditional arguments. They are retrieved from the [https://www.mediawiki.org/wiki/Extension:Cargo Cargo table] [[Special:CargoTables/Heroes|'Heroes']], defined in the [[Template:Hero_Infobox|Hero Infobox template]].
 
This module provides a hero's icon without the need of aditional arguments. They are retrieved from the [https://www.mediawiki.org/wiki/Extension:Cargo Cargo table] [[Special:CargoTables/Heroes|'Heroes']], defined in the [[Template:Hero_Infobox|Hero Infobox template]].
|preview = {{#invoke:Hero Icon|main|Axe|40}}
+
|preview = Hero Icon template: {{Hero Icon|Axe|40}}
|usage = <pre>{{#invoke:Hero Icon|main}}</pre>}}<noinclude>[[Category:Documentation]]</noinclude>
+
|usage = <pre>{{#invoke:Hero Icon|main}}</pre> or <pre>{{Hero Icon|<hero name>|<icon size>}}</pre>}}<noinclude>[[Category:Documentation]]</noinclude>

Latest revision as of 02:44, 14 April 2020

Documentation for Module:Hero Icon [edit] [edit doc]

Info Icon.png See also: Hero ID template.

This module provides a hero's icon without the need of aditional arguments. They are retrieved from the Cargo table 'Heroes', defined in the Hero Infobox template.

Preview


Hero Icon template: Axe

Usage


{{#invoke:Hero Icon|main}}
or
{{Hero Icon|<hero name>|<icon size>}}