[checked revision] | [checked revision] |
m (Add Usage section.) |
No edit summary Tag: 2017 source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Description == | |||
This module provides utility functions used from other modules. | This module provides utility functions used from other modules. | ||
Line 8: | Line 9: | ||
-- You may then call functions from this module in your script. For example: | -- You may then call functions from this module in your script. For example: | ||
local tableLength = Utils.tableLen(myTable)</syntaxhighlight> | local tableLength = Utils.tableLen(myTable)</syntaxhighlight> | ||
[[Category: | |||
<includeonly>[[Category:Documentation Templates]]</includeonly> | |||
<noinclude>[[Category:Module Docs]]</noinclude> |
Revision as of 12:28, 20 May 2024
Description
This module provides utility functions used from other modules.
Usage
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)