Editing Module:Icon/docGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
Main module for rendering game icons. | Main module for rendering game icons (heroes, abilities, and items). | ||
'''Note: This module is not intended for direct use.''' Use the templates below. | '''Note: This module is not intended for direct use.''' Use the templates below. | ||
== Data | == Data Sources == | ||
The module reads from [[Data:ResourceLookup.json]], a pre-indexed lookup table generated by [[User:Deadbot|Deadbot]] at deploy time. When the bot uploads new game files, | The module reads from [[Data:ResourceLookup.json]], a pre-indexed lookup table generated by [[User:Deadbot|Deadbot]] at deploy time. When the bot uploads new game files, icons update automatically. | ||
== Usage == | |||
Any of these templates work for any icon type (hero, ability, or item). The module auto-detects the type: | |||
* {{tl|HeroIcon}} - Can display heroes, abilities, or items | |||
* {{tl|AbilityIcon}} - Can display heroes, abilities, or items | |||
* {{tl|ItemIcon}} - Can display heroes, abilities, or items | |||
'''Note:''' While all three templates work identically, you can use whichever name makes the wiki source code more readable (e.g., use <nowiki>{{AbilityIcon|Siphon Life}}</nowiki> for clarity even though <nowiki>{{HeroIcon|Siphon Life}}</nowiki> works the same). | |||
== Error Tracking == | |||
Icons that fail to render are tracked in: [[:Category:Module:Icon ERROR]] | |||
== Aliases == | |||
Some icons have alternate names that redirect to the correct entry: | |||
* "Doorman" → "The Doorman" | |||
* "Mo and Krill" / "Mo" / "Krill" → "Mo & Krill" | |||
* "Curse" → "Cursed Relic" | |||
* "Debuff Remover" → "Dispel Magic" | |||
To add new aliases, edit the aliases table in [[Module:Icon]]. | |||