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 manipulations for new game content.

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.

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

Module:Inventory slot/Tooltips
 * Tooltips Subpage

Module:Inventory slot/Templates
 * Templates Subpage

Module:Item/Variants
 * Item Variants

Module:Inventory slot/Aliases is the last module to be considered for adding tooltips. This module is reserved for adding tooltips with unsupported parameters, like.
 * Aliases Subpage