Module:Icon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Added explanation about legacyitems |
New doc version. Moved table info. |
||
| Line 1: | Line 1: | ||
Main module for rendering game icons | Main module for rendering game icons. | ||
'''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, 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, icons update automatically. | ||
An additional resource for other icons can be found at [[Data:ResourceLookup2.json]], a manually maintained table used for other icons; some entries may rely on a dictionary key. | |||
See also: [[Module:Icon/data]] | |||
== Usage == | == Usage == | ||
Any of | Any of the following templates work for any icon type. The module auto-detects the type: | ||
* {{tl|HeroIcon}} | |||
* {{tl|AbilityIcon}} | |||
* {{tl|ItemIcon}} | |||
* {{tl|EntityIcon}} | |||
'''Note:''' While all four templates work identically, it is recommended to use the correct template (e.g., use <nowiki>{{AbilityIcon|Siphon Life}}</nowiki> for clarity even though <nowiki>{{HeroIcon|Siphon Life}}</nowiki> will work). | |||
== Error tracking == | |||
Icons that fail to render are added to [[:Category:Module:Icon ERROR]].<includeonly>[[:Category:Modules]]</includeonly><noinclude>[[:Category:Module documentation]]</noinclude> | |||
== Error | |||
Icons that fail to render are | |||