Module:Icon/doc
This is the documentation page for Module:Icon
Documentation for Module:Icon [edit] [edit doc]

This module provides improtant icons as a formatted image.
Preview
Attack Weapon |
![]() |
Armor | ![]() |
Health Accessory |
![]() |
Consumable | ![]() |
Spell | ![]() |
Improvement | ![]() |
Cooldown | ![]() |
Gold | ![]() |
None | |
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')