Module:MultiRequire/doc

This module provides two functions function that makes calling and  multiple easy.

Loading the module
To load this module and make its method available for use, Add this line of code to the start of your module:

The described functions below will be able to be used as they are saved as global variables in the module this module was loaded in.

Alternatively, you can use this module using the code below by using Module:LoadLib.

Depending on the settings you used in, the methods of this module may be available under their respective variables in the module this module was loaded in.

Return Values
This module returns two functions:
 * - Allows of loading of multiple modules at once.
 * - Exactly the same as, but uses instead of.

multiRequire
Returns any values returned by are returned. If the input is a table, it returns a table of the loaded modules. If variable length arguments are used, it returns the unpacked values. It will throw an error if the module is not found or if there was an error in loading one of the requested modules.

Examples

 * multiRequire('Module:String') → 
 * multiRequire{ 'Module:String', 'Module:Table' } → { ,  }

loadDataMulti
Works exactly the same as, but uses instead internally.

Examples

 * multiRequire('Module:Pet/Data') → 
 * multiRequire{ 'Module:UIText/Data', 'Module:Pet/Data' } → { ,  }