Module:Icon/doc: Difference between revisionsGive feedback
New doc version. Moved table info. |
m mc |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
== Data sources == | == 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, icons update automatically. | 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, hero, ability, and item icons update automatically. | ||
An additional resource for other icons can be found at [[Data:ResourceLookup2.json]], a manually maintained table | An additional resource for other icons can be found at [[Data:ResourceLookup2.json]], a manually maintained table; some entries may rely on a dictionary key. | ||
See | See [[Module:Icon/data]] for manual overrides, legacy items, aliases, and renames used by this module. | ||
== Usage == | == Usage == | ||
Any of the following templates | Any of the following templates can be used. The module automatically detects the icon type: | ||
* {{tl|HeroIcon}} | * {{tl|HeroIcon}} | ||
* {{tl|AbilityIcon}} | * {{tl|AbilityIcon}} | ||
| Line 17: | Line 17: | ||
* {{tl|EntityIcon}} | * {{tl|EntityIcon}} | ||
'''Note:''' While all four templates work identically, it is recommended to use the | '''Note:''' While all four templates work identically, it is recommended to use the appropriate one for clarity (e.g., use <nowiki>{{AbilityIcon|Siphon Life}}</nowiki> even though <nowiki>{{HeroIcon|Siphon Life}}</nowiki> will also work). | ||
== Error tracking == | == Error tracking == | ||
Icons that fail to render are added to [[:Category:Module:Icon ERROR]].<includeonly>[[ | Icons that fail to render are added to [[:Category:Module:Icon ERROR]]. | ||
<includeonly>[[Category:Modules]]</includeonly><noinclude>[[Category:Module documentation]]</noinclude> | |||