Jump to content

Category:Module

From We Are Calloway
Revision as of 19:55, 26 September 2025 by CelebrityCrush (talk | contribs) (Created page with "These modules contain functions written in Lua that can be accessed by other modules and templates. To access their functions in another module, you would use <code>local moduleName = require('MODULE_NAME')</code><br/> <code>moduleName.FUNCTION_NAME(VALUE)</code> To access their functions from a template or other page, you would use <code><nowiki>{{#invoke:MODULE_NAME|FUNCTION_NAME|PARAMETER=VALUE}}</nowiki></code> Lua functions should be kept separate from data, whi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

These modules contain functions written in Lua that can be accessed by other modules and templates. To access their functions in another module, you would use

local moduleName = require('MODULE_NAME')
moduleName.FUNCTION_NAME(VALUE)

To access their functions from a template or other page, you would use

{{#invoke:MODULE_NAME|FUNCTION_NAME|PARAMETER=VALUE}}

Lua functions should be kept separate from data, which reside in data modules.

This category currently contains no pages or media.