Module:Icon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Updated icon doc to reflect new change |
Added explanation about legacyitems |
||
| Line 5: | Line 5: | ||
== 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, icons update automatically. | ||
=== Legacy Items === | |||
Items that have been removed from the game files but still exist on the wiki (e.g., in "Unused" sections) are stored in a local <code>legacyItems</code> table within the module. This ensures icons for historical items continue to render correctly even after the bot removes them from the data JSON. | |||
To add a new legacy item, edit the <code>legacyItems</code> table in [[Module:Icon]]. | |||
== Usage == | == Usage == | ||