Module:Icon/doc

From Artifact Wiki
Jump to: navigation, search

This is the documentation page for Module:Icon

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

Info Icon.png See also: Icon template.

This module provides improtant icons as a formatted image.

Preview


Attack
Weapon
Attack
Armor Armor
Health
Accessory
Health
Consumable Consumable
Spell Spell
Improvement Improvement
Cooldown Cooldown
Gold Gold
None
Default Default

Usage


Within templates:
{{#invoke:Icon|main}}

Within modules:

1 -- At the start of the program
2 local getIcon = require('Module:Icon').getIcon
1 -- Where you need the icon
2 local icon = getIcon('icon name')