User:MonkeysHK/sandbox6


 * < Policies

= New Entries: Module Manipulation Guidelines =

In order to make the editing experience less repetitive, the Hypixel SkyBlock Wiki relies heavily on Lua Modules to store and process data. Many core mechanics and game features are processed with modules. When new contents are added to the game, some of the new information must be added to these modules in order for certain templates to function. This guideline will explain necessary module manipulation for new game content.

It is of crucial importance to update pages listed on this page when SkyBlock updates drops. You can revisit this page when errors like Invalid ID happens.

Data and Aliases Pages
Lua Modules that processes data usually have a Data Subpage. A data subpage usually stores all the data in a table with entries as keys: {	['data_key1'] = { data... },	['data_key2'] = { data... }, } The level of complexity of the data varies, and data in the same table always share a syntax of input in order to be processed correctly. The syntax can be observed with the module documentation (if any) and precedent inputs.

Aliases Subpage is a simple table that translates inputs into data keys that can be used to access data in the Data Subpage. It provides support for {	['Alias_one'] = 'data_key1', ['Alias_two'] = 'data_key1', ['data_key1'] = 'data_key1', ['Alias_three'] = 'data_key2', ['data_key2'] = 'data_key2', } It is always a good practice to add aliases if that subpage exists as some module requires aliases to be present in order to function.

Various Data Types
The following data types have their dedicated subpages for data entry. If data is not put in correctly, some templates might fail to show the desired results.

Tooltips
In order for a tooltip to be accessed everywhere with name, an entry must be added in one of a few ways.