[checked revision] | [checked revision] |
mNo edit summary |
Tag: 2017 source edit |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This module provides utility functions used from other modules. | This module provides utility functions used from other modules. | ||
[[Category: | == Usage == | ||
Add the following line of code at the top of your file. | |||
<syntaxhighlight lang="lua">local Utils = require("Module:Utils") | |||
-- You may then call functions from this module in your script. For example: | |||
local tableLength = Utils.tableLen(myTable)</syntaxhighlight> | |||
<includeonly>[[Category:Modules]]</includeonly> | |||
<noinclude>[[Category:Module Docs]]</noinclude> |
Latest revision as of 09:26, 28 June 2024
This module provides utility functions used from other modules.
Usage[edit source]
Add the following line of code at the top of your file.
local Utils = require("Module:Utils")
-- You may then call functions from this module in your script. For example:
local tableLength = Utils.tableLen(myTable)