Jump to content

Category:Module: Difference between revisions

From We Are Calloway
mNo edit summary
mNo edit summary
Tag: Manual revert
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
* [https://www.lua.org/pil/5.html Lua functions]
* [https://www.lua.org/pil/5.html Lua functions]


[[Category:Browse]]
[[Category:Administration]]

Latest revision as of 12:52, 28 September 2025

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.