Module:Util/doc

Description
This module blackboxes several Wiki operations (eg. Fetching skill info) and is intended for use by other Lua modules. This is mostly useful for functions that may be required across multiple modules (eg. Several modules may require checking if a value is nil or empty), and would be more efficient to define it once rather than multiple times across several modules.

Usage
This module can be used from other modules by requiring  and then calling the desired function.

The following is an example of using the  function, a function which checks if the given parameter is nil or empty, from another module:

local testVariable = 'test' local anotherTestVariable = require('Module:Util').isNilOrEmpty(sampleVariable)

The  can also be stored in a variable and called in that way.

local util = require('Module:Util') local testVariable = 'test' local anotherTestVariable = util.isNilOrEmpty(sampleVariable)