Module:Utils/doc: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
No edit summary
 
(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 5: Line 4:
Add the following line of code at the top of your file.
Add the following line of code at the top of your file.


<syntaxhighlight lang="lua">local Utils = require("Module:Utils")
<syntaxhighlight lang="text">local Utils = require("Module:Utils")


-- 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:

Latest revision as of 16:59, 30 November 2024

This module provides utility functions used from other modules.

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)